/* css/auth.css - ChaatBazar Authentication Styles */

/* Auth Pages Layout */
.auth-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe6cc 100%);
    position: relative;
    overflow-x: hidden;
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Floating Food Animation Background */
.food-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-food {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: floatAround 20s infinite linear;
    user-select: none;
}

.samosa { top: 15%; left: 5%; animation-duration: 22s; }
.pani-puri { bottom: 20%; right: 8%; animation-duration: 18s; animation-delay: -2s; }
.chaat { top: 40%; right: 15%; animation-duration: 25s; animation-delay: -5s; }
.chai { bottom: 10%; left: 12%; animation-duration: 20s; }
.lassi { top: 70%; left: 20%; animation-duration: 28s; animation-delay: -3s; }

@keyframes floatAround {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
    padding: 2rem 2rem 2.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: #2d2a26;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.auth-link {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.auth-link:hover {
    text-decoration: underline;
    color: #e55a2a;
}

.auth-switch-text {
    margin-top: 1.25rem;
    text-align: center;
    color: #4b5563;
    font-size: 0.95rem;
}

.form-message {
    min-height: 1.2rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-message.error {
    color: #b91c1c;
}

.form-message.success {
    color: #15803d;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.input-group label i {
    color: #ff6b35;
    margin-right: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.2s;
    background: #fefcf8;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.error-message.active {
    display: block;
}

.forgot-password {
    text-align: right;
    margin: -0.5rem 0 1.5rem;
}

.forgot-password a {
    color: #ff6b35;
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #ff6b35;
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: #e55a2a;
    transform: scale(0.98);
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: #adb5bd;
    position: relative;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    background: #f1f3f5;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4a4a4a;
    font-size: 1.2rem;
    transition: 0.2s;
}

.social-icon:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-3px);
}

.auth-footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #ff6b35;
    background: #fff2e9;
    padding: 0.8rem;
    border-radius: 40px;
}

/* Register specific row */
.name-row {
    display: flex;
    gap: 1rem;
}

.name-row .input-group {
    flex: 1;
}

/* Responsive */
@media (max-width: 550px) {
    .auth-card {
        padding: 1.5rem;
    }
    .name-row {
        flex-direction: column;
        gap: 0;
    }
    .floating-food {
        font-size: 1.8rem;
        opacity: 0.15;
    }

    .auth-switch-text {
        font-size: 0.9rem;
    }
}

/* Profile and Dashboard Pages */
.profile-page-card,
.dashboard-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.18);
}

.profile-page-header,
.dashboard-page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-hero {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ff6b35, #ff9f68);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 18px 30px rgba(255, 107, 53, 0.26);
}

.profile-page-header h2,
.dashboard-page-header h2 {
    font-size: 2rem;
    color: #2d2a26;
    margin-bottom: 0.35rem;
}

.profile-page-header p,
.dashboard-page-header p {
    color: #6c757d;
}

.profile-info-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #fff7f1;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.profile-info-label {
    color: #7c2d12;
    font-weight: 700;
}

.profile-info-value {
    color: #2d2a26;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff2e9;
    color: #ff6b35;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.dashboard-message {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #fff7f1;
    color: #4b5563;
    line-height: 1.7;
}

.dashboard-message strong {
    color: #ff6b35;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.profile-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: #ff6b35;
    color: #ffffff;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-action-link:hover,
.profile-action-link:focus-visible {
    transform: translateY(-1px);
    background: #e55a2a;
}

.profile-action-link.secondary {
    background: #fff7f1;
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.16);
}

.profile-action-link.secondary:hover,
.profile-action-link.secondary:focus-visible {
    background: #fff2e9;
}

@media (max-width: 550px) {
    .profile-page-card,
    .dashboard-card {
        padding: 1.5rem;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-info-value {
        text-align: left;
    }
}