﻿
/* ========== 通用样式（继承 Login.aspx） ========== */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
    margin: -30px -30px 0 -30px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #ee0025 0%, #B00A25 100%);
    color: white;
    padding: 20px 10px 10px;
    text-align: center;
    position: relative;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff7e5f, #feb47b);
    }

.school-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .school-logo img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: white;
}

.login-body {
    padding: 10px 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #ee0025;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #ee0025;
        background: white;
        box-shadow: 0 0 0 3px rgba(238, 0, 37, 0.1);
    }

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.input-with-icon .form-control {
    padding-left: 50px;
}

.validation-error {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.error-message {
    background: #ffeaea;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

    .error-message.show {
        display: block;
    }

    .error-message.success {
        background: #e8f5e8;
        color: #2e7d32;
        border-left: 4px solid #2e7d32;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.button-container {
    background: linear-gradient(135deg, #ee0025 0%, #B00A25 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.btn-primary {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    /*width: 100%;*/
}

.button-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(238, 0, 37, 0.3);
}

.button-container:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background: #e9ecef;
    }

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 注册页面特有样式（密码强度、要求、成功面板） ========== */
.password-strength {
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak {
    background-color: #ff4d4d;
}

.strength-medium {
    background-color: #ffa64d;
}

.strength-strong {
    background-color: #4dff4d;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
}

.requirements-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.requirement-icon {
    margin-right: 8px;
    font-size: 14px;
}

.requirement-met {
    color: #28a745;
}

.requirement-not-met {
    color: #6c757d;
}

.success-message {
    text-align: center;
    padding: 20px;
}

    .success-message h3 {
        color: #155724;
        margin-bottom: 15px;
    }

    .success-message p {
        color: #666;
        margin-bottom: 10px;
        line-height: 1.6;
    }

.success-actions {
    text-align: center;
    margin-top: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-page {
        padding: 20px 10px;
        margin: -20px -20px 0 -20px;
    }

    .login-card {
        max-width: 100%;
        margin: 10px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .school-logo {
        width: 70px;
        height: 70px;
    }

        .school-logo img {
            width: 70px;
            height: 70px;
        }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
        margin: -10px -10px 0 -10px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .form-control {
        padding: 12px 14px;
    }

    .btn-primary, .btn-secondary {
        padding: 14px;
    }
}
