﻿.breadcrumb a {
    text-decoration: none;
}

.register-strip {
    padding: 32px 0 40px;
    background: #f6f8fc;
}

.register-layout {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 16px 40px rgba(20, 34, 64, .12);
    overflow: hidden;
}

.register-head {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 40px;
    background: linear-gradient(155deg, #121a2e 0%, #1c2746 42%, #243a66 100%);
    color: #fff;
}

    .register-head::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 90% 85% at 50% -25%, rgba(255, 74, 42, .16), transparent 55%);
        pointer-events: none;
    }

    .register-head::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: min(320px, 72%);
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, rgba(255, 74, 42, .35), #ff4a2a, rgba(255, 74, 42, .35), transparent);
    }

.register-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.register-head .accent {
    color: #ff4a2a;
}

.register-sub {
    position: relative;
    z-index: 1;
    margin: 14px auto 0;
    font-size: 20px;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    line-height: 1.65;
}

    .register-sub .accent {
        font-weight: 800;
    }

.register-form {
    --rf-label-col: 210px;
    --rf-gap: 26px;
    padding: 34px 40px 40px;
}

.rf-row {
    display: grid;
    grid-template-columns: minmax(168px, var(--rf-label-col)) 1fr;
    gap: 16px var(--rf-gap);
    align-items: center;
    margin-bottom: 26px;
}

    .rf-row:last-of-type {
        margin-bottom: 0;
    }

.rf-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2e57;
    text-align: right;
    padding-right: 6px;
}

.req {
    color: #ef4444;
    margin-right: 4px;
}

.register-strip .form-control {
    border-radius: 0;
    border: 1px solid #d8e2f0;
    min-height: 48px;
    font-size: 15px;
}

    .register-strip .form-control:focus {
        border-color: #7a92b8;
        box-shadow: none;
    }

.rf-verify {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#captchaInput {
    width: 100px;
    min-width: 100px;
    flex: 0 0 auto;
}

.captcha-box {
    height: 48px;
    min-width: 148px;
    padding: 0 16px;
    background: linear-gradient(135deg, #eef2fa 0%, #e2e9f5 100%);
    border: 1px solid #c5d2e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 6px;
    color: #1f2e57;
    user-select: none;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 1px 1px 0 rgba(255,255,255,.6);
}

.captcha-refresh {
    width: 48px;
    height: 48px;
    border: 1px solid #d8e2f0;
    background: #fff;
    color: #1f2e57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .captcha-refresh:hover {
        background: #f3f6fb;
        color: #e43f22;
        border-color: #c5d2e8;
    }

.legal-note {
    margin: 28px 0 0;
    font-size: 15px;
    color: #5c6570;
    text-align: left;
    line-height: 1.7;
    margin-left: calc(var(--rf-label-col) + var(--rf-gap));
    width: calc(100% - var(--rf-label-col) - var(--rf-gap));
}

    .legal-note label {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        cursor: pointer;
    }

    .legal-note input[type="checkbox"] {
        width: 15px;
        height: 15px;
        margin-top: 6px;
        flex: 0 0 auto;
    }

    .legal-note.secondary {
        margin-top: 10px;
    }

    .legal-note a {
        color: #325f8d;
        font-weight: 600;
    }

.action-row {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    flex-wrap: wrap;
    margin-left: calc(var(--rf-label-col) + var(--rf-gap));
    width: calc(100% - var(--rf-label-col) - var(--rf-gap));
}

.register-btn {
    border: none;
    background: linear-gradient(90deg, #ff4a2a, #e43f22);
    color: #fff;
    min-height: 52px;
    min-width: 220px;
    font-weight: 800;
    font-size: 16px;
    padding: 0 32px;
    letter-spacing: .02em;
}

    .register-btn:hover {
        filter: brightness(1.20);
    }

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #325f8d;
    text-decoration: none;
    font-size: 16px;
}

    .login-link:hover {
        color: #e43f22;
    }

@media (max-width: 576px) {
    .register-head {
        padding: 40px 22px 36px;
    }

    .register-title {
        font-size: 30px;
    }

    .register-sub {
        font-size: 15px;
        margin-top: 14px;
    }

    .register-form {
        padding: 24px 20px 28px;
    }

    .rf-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .rf-label {
        text-align: left;
        padding-right: 0;
    }

    .legal-note {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .action-row {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* 错误提示样式 */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 20px;
    display: none;
    padding-left: 2px;
}

    .error-message.show {
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-feedback {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

    .form-feedback.show {
        display: block;
    }

    .form-feedback.error {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid #f5c6cb;
    }

    .form-feedback.success {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border: 1px solid #c3e6cb;
    }

.legal-note .error-message {
    margin-top: 5px;
    margin-left: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.form-control.error-shake {
    animation: shake 0.5s ease-in-out;
}
