/* Auth Page Styles */
.auth-main {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: linear-gradient(135deg, #f9f4ff 0%, #f0e6ff 100%);
}

.auth-container {
    max-width: 480px;
    margin: 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(160,132,232,0.10);
    padding: 0 0 32px 0;
    position: relative;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 36px;
    border-bottom: 2px solid #ede7f6;
    background: transparent;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    outline: none;
    font-size: 1.18rem;
    font-weight: 600;
    color: #6c5ce7;
    padding: 14px 40px 12px 40px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-radius: 0;
    letter-spacing: 0.01em;
}

.tab-btn.active {
    color: #a084e8;
}

.tab-btn.active::after {
    content: "";
    display: block;
    height: 3px;
    width: 70%;
    margin: 0 auto;
    background: #a084e8;
    border-radius: 2px 2px 0 0;
    position: absolute;
    left: 15%;
    bottom: -2px;
    z-index: 2;
}

.tab-btn:not(.active)::after {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: transparent;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.auth-form {
    display: none;
    padding: 0 32px 0 32px;
}
.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.auth-form h2 {
    text-align: center;
    color: #222;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
}
.auth-subtitle {
    text-align: center;
    color: #7c3aed;
    margin-bottom: 32px;
    font-size: 1.08rem;
    font-weight: 400;
}
.form-group {
    margin-bottom: 26px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 15px;
    font-weight: 500;
}
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon i {
    position: absolute;
    left: 18px;
    color: #bdbdbd;
    font-size: 1.1em;
}
.input-icon input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #faf8ff;
    transition: all 0.3s ease;
}
.input-icon input:focus {
    border-color: #a084e8;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(160,132,232,0.08);
}
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bdbdbd;
    cursor: pointer;
    padding: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    gap: 18px;
}
.remember-me, .terms {
    font-size: 14px;
    color: #444;
}
.remember-me input[type="checkbox"],
.terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
}
.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}
.btn-auth {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(90deg, #a084e8 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(160,132,232,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-auth:hover {
    background: linear-gradient(90deg, #7c3aed 0%, #a084e8 100%);
    box-shadow: 0 4px 16px rgba(160,132,232,0.13);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 576px) {
    .auth-container {
        margin: 0 15px;
    }
    .auth-form {
        padding: 20px;
    }
    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* Custom Alerts */
.custom-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(80,0,120,0.07);
}

.custom-alert-danger {
    background: #ffeaea;
    color: #b71c1c;
    border: 1px solid #ffb3b3;
}

.custom-alert-success {
    background: #e6f9e6;
    color: #2e7d32;
    border: 1px solid #b2e2b2;
}

.custom-alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.custom-alert i {
    font-size: 1.3em;
}

/* Social Login */
.social-login {
    text-align: center;
    margin-top: 18px;
}

.social-login p {
    color: #bdbdbd;
    margin-bottom: 18px;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1.5px;
    background-color: #ede7f6;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-social {
    padding: 12px 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #faf8ff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social.google {
    color: #DB4437;
}

.btn-social.facebook {
    color: #4267B2;
}

.btn-social:hover {
    background: #f3eaff;
    border-color: #a084e8;
}

/* Error States */
.input-icon.error input {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .auth-container {
        padding: 0 2vw 18px 2vw;
        max-width: 98vw;
    }
    .auth-form {
        padding: 0 8px 0 8px;
    }
    .tab-btn {
        padding: 12px 10px 10px 10px;
        font-size: 1rem;
    }
    .close-auth {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
        top: -12px;
        right: -12px;
    }
}

.close-auth {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #a084e8;
    border-radius: 50%;
    font-size: 2rem;
    color: #a084e8;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(160,132,232,0.18);
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s, transform 0.15s;
}
.close-auth:hover {
    background: #a084e8;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 8px 24px rgba(160,132,232,0.22);
    transform: scale(1.12) rotate(8deg);
}

/* Birthdate row styling for register form */
.birthdate-row {
    display: flex;
    gap: 12px;
}
.birthdate-select {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background: #faf8ff;
    transition: all 0.3s ease;
}
.birthdate-select:focus {
    border-color: #a084e8;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(160,132,232,0.08);
}
@media (max-width: 600px) {
    .birthdate-row {
        flex-direction: column;
        gap: 8px;
    }
    .birthdate-select {
        width: 100%;
    }
} 