/* ================================================
   PlantCare - Modern Plant Care App Styling
   Fresh, Clean, Nature-Inspired Design
   ================================================ */

:root {
    /* Nature-Inspired Color Palette */
    --primary-green: #2D6A4F;
    --light-green: #52B788;
    --accent-green: #40916C;
    --soft-green: #B7E4C7;
    --background-cream: #F8F9FA;
    --white: #FFFFFF;
    --dark-gray: #1B4332;
    --medium-gray: #74C69D;
    --light-gray: #D8F3DC;
    --text-dark: #1B4332;
    --text-light: #6C757D;
    --error-red: #DC3545;
    --success-green: #52B788;
    --shadow: rgba(45, 106, 79, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ================================================
   HOMEPAGE HERO SECTION
   ================================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--soft-green) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--light-green);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--light-green);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h3 {
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.hero-image {
    position: relative;
}

.plant-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px var(--shadow));
}

/* ================================================
   AUTH PAGES (Login & Register)
   ================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.auth-visual {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--white);
    opacity: 0.1;
    border-radius: 50%;
}

.auth-visual h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-visual p {
    font-size: 1.125rem;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-visual-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
}

.auth-form-container {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.auth-logo h1 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-form {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.form-control.error {
    border-color: var(--error-red);
}

.error-message {
    color: var(--error-red);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    color: var(--success-green);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-submit:disabled {
    background: var(--light-gray);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--light-gray);
    z-index: 0;
}

.form-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

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

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #FFE5E7;
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.alert-success {
    background: #E8F8F0;
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-features {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        padding: 2rem;
    }

    .auth-form-container {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}
