﻿* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient( 135deg, #dff4ff 0%, #9edcff 50%, #65bdf3 100% );
    color: #263645;
}

.page-container {
    min-height: 100vh;
    padding: 30px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-card {
    width: 100%;
    max-width: 430px;
    padding: 36px 34px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(28, 107, 156, 0.25);
}

.school-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    background: #178ed1;
    color: white;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(23, 142, 209, 0.3);
}

.register-title {
    margin: 0;
    text-align: center;
    color: #174f71;
    font-size: 28px;
}

.register-subtitle {
    margin: 10px 0 28px;
    text-align: center;
    color: #718493;
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #35556a;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #c9dce8;
    border-radius: 9px;
    background: #fbfdff;
    color: #263645;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .form-control:focus {
        border-color: #239fe3;
        background: white;
        box-shadow: 0 0 0 4px rgba(35, 159, 227, 0.12);
    }

    .form-control.input-error {
        border-color: #e85b5b;
        background: #fffafa;
        box-shadow: 0 0 0 4px rgba(232, 91, 91, 0.08);
    }

.field-error {
    min-height: 18px;
    margin-top: 5px;
    color: #d94343;
    font-size: 12px;
    line-height: 18px;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 72px;
    }

.password-toggle {
    position: absolute;
    top: 0;
    right: 5px;
    height: 46px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #2589bf;
    cursor: pointer;
    font-size: 13px;
}

    .password-toggle:hover {
        color: #12628e;
    }

.form-message {
    display: none;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

    .form-message.error {
        display: block;
        border: 1px solid #f1b4b4;
        background: #fff1f1;
        color: #bd3535;
    }

    .form-message.success {
        display: block;
        border: 1px solid #a9ddc1;
        background: #edfff5;
        color: #237348;
    }

.register-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #198fd0, #2fa9eb);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 151, 216, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

    .register-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(31, 151, 216, 0.34);
    }

    .register-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.login-link {
    margin-top: 22px;
    text-align: center;
    color: #6b7f8d;
    font-size: 14px;
}

    .login-link a {
        color: #178ed1;
        font-weight: bold;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.registration-rule {
    margin-top: 18px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f0f9ff;
    color: #517184;
    font-size: 12px;
    line-height: 1.6;
}

/* 蜜罐字段，正常用户不可见 */
.website-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@@media (max-width: 520px) {
    .page-container {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .register-card {
        margin-top: 16px;
        padding: 28px 22px;
        border-radius: 14px;
    }

    .register-title {
        font-size: 25px;
    }
}
