@charset "utf-8";

/* ======================
   RESET & BASE
====================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Helvetica, Arial, sans-serif;
    color: #2c3e50;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* ======================
   LAYOUT GRID (DESKTOP)
====================== */
body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(20px, 1fr) minmax(0, 1200px) minmax(20px, 1fr);
    grid-template-rows: auto 1fr auto;
}

/* ======================
   NAVIGATION
====================== */
.main-nav {
    grid-column: 1 / -1;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo-link img {
    height: 50px;
}

/* Desktop menu */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    font-size: 16px;
    color: #2c3e50;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4361ee;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: #4361ee;
}

a.reg-button {;
    background: #4361ee;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

a.reg-button:hover {
    background: #3a56d4;
}

/* ======================
   HAMBURGER (MOBILE)
====================== */
#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    position: absolute;
    content: '';
    height: 3px;
    width: 100%;
    background: #2c3e50;
    transition: 0.3s;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* ======================
   MAIN CONTENT
====================== */
main {
    grid-column: 2;
    padding: 30px 20px;
}

.budget-app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ======================
   HERO
====================== */

.hero-section {
    margin-bottom: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-text .subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #4a5568;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero-features li {
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.hero-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4361ee;
    font-weight: bold;
}

.feature-item {
    margin-bottom: 8px;
}

.cta-button {
    display: inline-block;
    background: #4361ee;
    color: #fff;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
}

.cta-button:hover {
    background: #3a56d4;
}

.hero-image {
    max-width: 300px;
    margin: 0 auto;
}

.hero-image img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ======================
   FORMS / LOGIN
====================== */
.login-section {
    margin-bottom: 80px;
}

.login-card {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.login-card input[type=text],
.login-card input[type=password],
.login-card input[type=submit] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.login-card input[type=submit] {
    background: #4361ee;
    color: white;
    border: none;
    cursor: pointer;
}

.login-button:hover {
    background: #3a56d4;
}

.login-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-links.split {
    display: flex;
    justify-content: space-between;
}

.login-button {
    width: 100%;
    background: #4361ee;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.google-login {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

/* ======================
   HELP / FEATURES
====================== */
.help-content {
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 350px;
    width: 100%;
}

/* ---------------- ALERT ---------------- */

.alert-message {
    background: #e6f0ff;
    border-left: 4px solid #4361ee;
    padding: 12px;
    margin-bottom: 1rem;
}

/* ---------------- QUOTE ---------------- */

.quote-section {
    text-align: center;
    margin-bottom: 60px;
}

.quote-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #4a5568;
}

/* ======================
   MODAL
====================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

/* ======================
   FOOTER
====================== */
footer {
    grid-column: 1 / -1;
    background: #223;
    color: #ccc;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Google Styles */
.google-login-section {
    margin-top: 20px;
    text-align: center;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #666;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.or-divider span {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    border-color: #ccc;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}
        .registration-container {
            max-width: 500px;
            margin: 40px auto;
            padding: 30px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        
        .google-user-info {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .google-user-info img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 10px;
            border: 3px solid #4CAF50;
        }
        
        .google-user-info h2 {
            color: #333;
            margin-bottom: 5px;
        }
        
        .google-user-info p {
            color: #666;
            margin: 0;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .form-group input, .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
        }
        
        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
        }
        
        .readonly-input {
            background: #f5f5f5;
            color: #666;
            cursor: not-allowed;
        }
        
        .submit-btn {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: background 0.3s;
            margin-top: 10px;
        }
        
        .submit-btn:hover {
            background: #45a049;
        }
        
        .form-note {
            font-size: 13px;
            color: #666;
            margin-top: 5px;
            display: block;
        }
        
        .required:after {
            content: " *";
            color: #e74c3c;
        }
        
        .error-message {
            background: #ffe6e6;
            border: 1px solid #ff9999;
            color: #cc0000;
            padding: 10px 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: none;
        }
        
        .error-message.show {
            display: block;
        }

/* ======================
   MOBILE OVERRIDES
====================== */
@media (max-width: 768px) {

    body {
        display: block;
    }

    main {
        padding: 20px 16px;
    }

    /* NAV */
    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        display: none;
        border-top: 1px solid #eee;
    }

    .nav-menu li {
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-link,
    .nav-button {
        padding: 14px 16px;
        width: 100%;
        text-align: left;
    }

    #nav-toggle:checked ~ .nav-menu {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .login-links.split {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* HELP */
    .feature-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* FOOTER */
    footer {
        padding: 1.5rem 1rem;
    }
}