/* ===== AUTH PAGES STYLES ===== */

/* Auth Page Layout */
/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Modern Soft Mesh Gradient */
    background-color: #FFFDF7;
    background-image:
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(52, 211, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(254, 243, 199, 0.3) 0px, transparent 50%);
    background-size: 100% 100%;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle Animated Pattern Overlay */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotateBg 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Logo */
.auth-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.auth-logo .logo-icon {
    font-size: 28px;
}

.auth-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: #FAFAFA;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Error & Success Messages */
.error-message {
    padding: 14px 18px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    color: #DC2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: '✕';
    font-weight: bold;
}

.success-message {
    padding: 18px 20px;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 2px solid #10b981;
    border-radius: 14px;
    color: #047857;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    animation: successPop 0.4s ease-out;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.success-message::before {
    content: '✓ ';
    font-weight: bold;
    font-size: 18px;
}

@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Buttons */
.btn-full {
    width: 100%;
    padding: 16px 24px;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.auth-divider span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #FAFAFA;
    border-color: var(--text-muted);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-terms {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ===== DASHBOARD STYLES ===== */

.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.dashboard-nav .auth-logo {
    position: static;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.dashboard-container {
    width: 100%;
    max-width: 900px;
    margin-top: 80px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.dashboard-header h1 span {
    color: var(--accent);
}

.dashboard-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card.main-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-unit {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-badge {
    font-size: 16px !important;
    padding: 6px 16px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
}

.status-badge.pro {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #B45309;
}

.email-value {
    font-size: 16px !important;
    word-break: break-all;
}

/* Download Section */
.download-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.download-section p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* How to Section */
.how-to-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
}

.how-to-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.how-to-section ol {
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 2;
}

.how-to-section strong {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-logo {
        position: static;
        margin-bottom: 32px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card.main-stat {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .dashboard-nav {
        padding: 16px 20px;
    }
}