.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.auth-modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 440px;
    padding: 3.5rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}
.auth-modal-close, .auth-back-btn {
    position: absolute;
    top: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}
.auth-modal-close:hover, .auth-back-btn:hover {
    background: #E8E8ED;
}
.auth-modal-close svg, .auth-back-btn svg,
.auth-modal-close i, .auth-back-btn i {
    width: 1.25rem !important;
    height: 1.25rem !important;
    stroke: #1d1d1f !important;
    color: #1d1d1f !important;
    display: block;
}
.auth-modal-close { right: 2rem; }
.auth-back-btn { left: 2rem; }
.auth-modal-header {
    text-align: center;
    margin-bottom: 3rem;
}
.auth-modal-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: #F5F5F7;
    border-radius: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}
.auth-modal-icon img {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
}
.auth-modal-title {
    color: #1d1d1f;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.auth-modal-subtitle {
    color: #86868b;
    font-size: 0.9375rem;
}
.auth-form-group {
    margin-bottom: 1.75rem;
}
.auth-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}
.auth-input-wrapper {
    display: flex;
    align-items: center;
    background: #F5F5F7;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 1.25rem;
    transition: all 0.2s ease;
    height: 3.5rem;
}
.auth-input-wrapper:focus-within {
    background: #FFFFFF;
    border-color: #0071E3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.auth-icon-main {
    width: 1.125rem !important;
    height: 1.125rem !important;
    stroke: #86868b !important;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.auth-form-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #1d1d1f;
    font-size: 1rem;
    outline: none !important;
    width: 100%;
}
.auth-password-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-right: -0.5rem;
    flex-shrink: 0;
}
.auth-password-toggle-btn svg, .auth-password-toggle-btn i {
    width: 1.125rem !important;
    height: 1.125rem !important;
    stroke: #86868b !important;
}
.auth-password-toggle-btn:hover svg {
    stroke: #0071E3 !important;
}
.auth-btn-primary {
    width: 100%;
    padding: 1.125rem;
    background: #0071E3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.auth-btn-primary:hover {
    background: #0077ED;
    transform: scale(1.01);
}
.auth-btn-text {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #0071E3;
    font-size: 0.875rem;
    font-weight: 500;
}
.auth-code-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2.5rem 0;
}
.auth-code-input {
    width: 3.25rem;
    height: 4rem;
    background: #F5F5F7;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    transition: all 0.2s ease;
}
.auth-code-input:focus {
    outline: none;
    border-color: #0071E3;
    background: #FFFFFF;
}
.auth-info-box {
    background: #F5F5F7;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #86868b;
    margin-bottom: 2rem;
}
.auth-info-box svg {
    stroke: #0071E3 !important;
    flex-shrink: 0;
    width: 1rem !important;
    height: 1rem !important;
}
.auth-error-message, .auth-success-message {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
    border-radius: 12px;
}
.auth-error-message { background: #FFF2F2; color: #FF3B30; }
.auth-success-message { background: #F2FFF5; color: #34C759; }
.auth-error-message.active, .auth-success-message.active { display: block; }
.auth-step-content { display: none; animation: authFadeIn 0.3s ease; }
.auth-step-content.active { display: block; }
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-loading {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
    display: inline-block;
}
@keyframes authSpin { to { transform: rotate(360deg); } }