/* Auth Pages Styling - Daily Groc */
:root {
    --auth-bg-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.auth-wrapper {
    display: flex;
    min-height: calc(100vh - 80px); /* Bottom nav space if any */
    background: var(--bg);
}



.auth-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border);
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-card);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-icon-wrapper input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light) !important;
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--bg);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

/* Strength Indicator */
.strength-container {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
    display: flex;
}

.strength-segment {
    flex: 1;
    height: 100%;
}

.strength-segment.active { transition: var(--transition); }
.strength-0 .strength-segment:nth-child(1) { background: #ef4444; }
.strength-1 .strength-segment { background: #ef4444; }
.strength-2 .strength-segment { background: #f59e0b; }
.strength-3 .strength-segment { background: #10b981; }

/* Views switching */
.view {
    display: none;
    transition: var(--transition);
}

.view.active {
    display: block;
}

/* Photo upload */
.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.photo-preview input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.photo-preview .camera-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.8rem;
    padding: 4px 0;
    text-align: center;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.toast {
    padding: 16px 24px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* OTP Verification Styling */
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.otp-field {
    width: 100%;
    max-width: 240px;
    height: 64px;
    text-align: center;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 12px;
    border-radius: 16px !important;
    border: 2px solid var(--border) !important;
    background: var(--bg) !important;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 10px 0 25px !important;
}

.otp-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 6px var(--primary-light) !important;
    transform: scale(1.02);
}

[data-theme="dark"] .otp-field {
    background: #0f172a !important;
    border-color: #334155 !important;
}

.resend-box a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: 0.2s;
}

.resend-box a:hover {
    color: var(--primary-dark);
    filter: brightness(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-sidebar { display: none; }
    .auth-card { padding: 32px 24px; border: none; box-shadow: none; }
    .auth-content { padding: 0; background: var(--bg-card); }
}

/* Toast System - Auth Pages */
.toast-container {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    min-width: 320px;
    animation: toastPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

@keyframes toastPop {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme="dark"] .toast {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
