:root {
    --brand-black: #000000;
    --text-gray: #5f6368;
    --border-color: #e0e0e0;
}
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 80px 0; 
}
#root {
    width: 95%;
    transition: opacity 0.3s ease;
}
@media only screen and (min-width: 721px) {
    #root {
        width: calc((100% - 60px) / 2);
        max-width: 550px; 
    }
}
.auth-container { text-align: center; width: 100%; }
.logo {
    font-size: 48px; 
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 35px;
    color: var(--brand-black);
}
h2 { font-size: 24px; letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; }
.subtitle { color: var(--text-gray); font-size: 17px; margin-bottom: 50px; }
.field-group {
    position: relative;
    margin-bottom: 35px;
    text-align: left;
}
.field-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 12px 0 8px 0;
    font-size: 19px;
    outline: none;
    background: transparent;
    display: block;
    color: #000;
}
.field-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 18px;
    color: var(--text-gray);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.field-group input:focus ~ label,
.field-group input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 13px;
    color: var(--brand-black);
    font-weight: bold;
}
.field-group input:focus { border-bottom-color: var(--brand-black); }
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    margin: 35px 0 20px 0;
}
.checkbox-container input {
    width: 22px;
    height: 22px;
    accent-color: var(--brand-black);
    cursor: pointer;
}
.checkbox-container label { font-size: 15px; color: var(--text-gray); line-height: 1.6; }
.legal-box {
    font-size: 13.5px;
    color: #757575;
    line-height: 1.8;
    text-align: center;
    margin-top: 25px;
}
.legal-box a { color: #000; text-decoration: underline; font-weight: 600; }
.action-btn {
    width: 100%;
    padding: 20px;
    background: #2f3132;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 19px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
}
.action-btn:hover { background: var(--brand-black); }
.switch-text { margin-top: 40px; font-size: 17px; color: var(--text-gray); }
.switch-text span { color: var(--brand-black); text-decoration: underline; cursor: pointer; font-weight: bold; }
.password-wrapper {
    position: relative;
    width: 100%;
}
.toggle-password {
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.3s;
}
.toggle-password:hover {
    color: var(--brand-black);
}
.toggle-password svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: var(--brand-black);
    text-decoration: none;
    font-weight: 600;
}
.forgot-password:hover {
    text-decoration: underline;
}
.login-legal {
    font-size: 20px;
    color: #626161;
    margin: 20px 0;
    line-height: 1.6;
}
.login-legal a {
    color: #101010;
    text-decoration: underline;
}
.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: var(--brand-black);
    text-decoration: none;
    font-weight: 600;
}
.forgot-password:hover {
    text-decoration: underline;
}
#reset-form input[name="code"] {
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    font-size: 22px;
}

.switch-text span {
    color: #0ea5e9;
    cursor: pointer;
    text-decoration: none;
}

.code-input {
    letter-spacing: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 22px !important;
}
.forgot-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
}
.resend-text {
    margin-top: 15px;
    font-size: 14px;
    color: #5f6368;
}
.resend-text span {
    color: #0ea5e9;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}
.static-label {
    top: -15px !important;
    font-size: 13px !important;
    font-weight: bold;
    color: #000 !important;
}
.auth-msg {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}
.msg-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.msg-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}