﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #f9fafb, #e6f0ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: #2d3748;
}

.register-container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.2rem 2rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 1.8rem;
}

    .logo h1 {
        font-size: 1.8rem;
        font-weight: 700;
        color: #3182ce;
    }

    .logo p {
        color: #718096;
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }

.input-group {
    margin-bottom: 1.4rem;
    position: relative;
}

    .input-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #4a5568;
        font-size: 0.95rem;
    }

    .input-group input {
        width: 100%;
        padding: 0.85rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 1rem;
        outline: none;
        transition: all 0.25s ease;
        background: #f8fafc;
    }

        .input-group input:focus {
            border-color: #3182ce;
            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
            background: white;
        }

/* 验证码输入区 */
.verification {
    display: flex;
    gap: 0.8rem;
}

    .verification input {
        flex: 1;
    }

.send-code-btn {
    padding: 0.85rem 1rem;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .send-code-btn:hover:not(:disabled) {
        background: #e2e8f0;
        color: #2d3748;
    }

    .send-code-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* 密码强度提示 */
.password-strength {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: #cbd5e0;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-weak {
    background: #e53e3e !important;
}

.strength-medium {
    background: #ecc94b !important;
}

.strength-strong {
    background: #48bb78 !important;
}

.register-btn {
    width: 100%;
    padding: 0.9rem;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 1.4rem;
}

    .register-btn:hover {
        background: #2b6cb0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
    }

.divider {
    text-align: center;
    position: relative;
    margin: 1.6rem 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

    .divider::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #edf2f7;
        z-index: -1;
    }

.login-link {
    text-align: center;
    font-size: 0.95rem;
    color: #4a5568;
}

    .login-link a {
        color: #3182ce;
        text-decoration: none;
        font-weight: 600;
        margin-left: 0.3rem;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .register-container {
        padding: 1.8rem 1.4rem;
    }

    .verification {
        flex-direction: column;
    }
}
