/* ==============================================
   GNB APPS LOGIN - PIXEL-PERFECT REFERENCE MATCH
   Glass container with wave overlays and floating card
   ============================================== */

/* CSS Variables */
:root {
    --primary-green: #5FA227;
    --primary-green-dark: #4d8f1d;
    --primary-green-light: #7BC143;
    --bg-mint: #f0fdf4;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --white: #ffffff;
    --input-bg: #f3f4f6;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f9ed 50%, #dcfce7 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==============================================
   PAGE BACKGROUND LAYERS
   ============================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
}

/* Very subtle grid pattern (barely visible like reference) */
.page-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(95, 162, 39, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(95, 162, 39, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Soft radial glow behind container */
.page-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1600px;
    height: 1000px;
    background: radial-gradient(ellipse at center, rgba(95, 162, 39, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ==============================================
   MAIN GLASS CONTAINER (UPGRADED)
   ============================================== */
.glass-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    min-height: 760px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 32px 64px -16px rgba(0, 0, 0, 0.1),
        0 8px 16px -4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* ==============================================
   WAVE OVERLAYS (LEFT SIDE)
   ============================================== */
.wave-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.wave-1 {
    top: -15%;
    left: -8%;
    width: 60%;
    height: 70%;
    background: radial-gradient(
        ellipse 800px 600px at 40% 50%,
        rgba(95, 162, 39, 0.08) 0%,
        rgba(123, 193, 67, 0.05) 40%,
        transparent 70%
    );
    border-radius: 60% 40% 50% 50%;
}

.wave-2 {
    bottom: -10%;
    left: 5%;
    width: 55%;
    height: 60%;
    background: radial-gradient(
        ellipse 700px 500px at 30% 40%,
        rgba(123, 193, 67, 0.06) 0%,
        rgba(95, 162, 39, 0.04) 50%,
        transparent 75%
    );
    border-radius: 50% 60% 40% 50%;
    transform: rotate(-15deg);
}

/* Halftone dots INSIDE glass container */
.halftone-dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(95, 162, 39, 0.035) 1.2px, transparent 1.2px),
        radial-gradient(circle, rgba(95, 162, 39, 0.025) 1px, transparent 1px);
    background-size: 24px 24px, 18px 18px;
    background-position: 0 0, 12px 12px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* ==============================================
   CONTENT GRID (REPLACES HARD SPLIT)
   ============================================== */
.content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 760px;
}

/* ==============================================
   LEFT PANEL - POSTER
   ============================================== */
.poster-panel {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.poster-content {
    position: relative;
    z-index: 3;
}

/* Logo Tile with shadow */
.logo-tile {
    width: fit-content;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(95, 162, 39, 0.08);
    margin: 0 auto 48px auto;
}

.gnb-logo {
    height: 72px;
    width: auto;
    display: block;
}

/* Poster Heading (larger and heavier) */
.poster-heading {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1.2px;
    color: var(--text-dark);
}

.text-green {
    color: var(--primary-green);
}

.poster-subtitle {
    font-size: 19px;
    color: var(--text-gray);
    margin-bottom: 56px;
    font-weight: 400;
    line-height: 1.6;
}

/* Feature List with better spacing */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
}

.check-icon {
    flex-shrink: 0;
    margin-top: 1px;
    filter: drop-shadow(0 3px 6px rgba(95, 162, 39, 0.25));
}

/* Stat Cards (stronger shadow, inner gradient) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.88) 100%);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    margin: 0 auto 14px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(95, 162, 39, 0.15));
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary-green);
    position: relative;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
}

/* ==============================================
   RIGHT PANEL - FLOATING LOGIN CARD
   ============================================== */
.login-panel {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
}

/* Floating card (smaller width, stronger shadow, moved up slightly) */
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 48px rgba(0, 0, 0, 0.14),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(-20px);
    position: relative;
}

/* Card Logo Badge (larger with shadow) */
.card-logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-badge {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Card Title */
.card-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.6px;
}

.card-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ==============================================
   LOGIN FORM (MORE VERTICAL SPACING)
   ============================================== */
.login-form {
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 9px;
}

/* Input Wrapper with Icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    background: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(95, 162, 39, 0.1);
}

.form-input:hover:not(:focus) {
    background: #e9ecef;
}

/* Validation */
.validation-summary {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid #fecaca;
}

.field-validation {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 7px;
    margin-left: 4px;
}

/* Remember Me */
.form-options {
    margin-bottom: 26px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    width: 19px;
    height: 19px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

/* Sign In Button */
.btn-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 17px 26px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(95, 162, 39, 0.32);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(95, 162, 39, 0.42);
}

.btn-signin:active {
    transform: translateY(0);
}

.btn-signin svg {
    transition: transform 0.25s ease;
}

.btn-signin:hover svg {
    transform: translateX(5px);
}

/* ==============================================
   DIVIDER
   ============================================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 36px 0;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

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

.divider span {
    padding: 0 18px;
}

/* ==============================================
   SOCIAL LOGIN BUTTONS
   ============================================== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.social-login form {
    width: 100%;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 500;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-dark);
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.btn-social:active {
    transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-container {
        min-height: auto;
    }
    
    .poster-panel {
        padding: 48px 40px;
    }
    
    .poster-heading {
        font-size: 42px;
    }
    
    .poster-subtitle {
        font-size: 17px;
        margin-bottom: 42px;
    }
    
    .feature-list {
        gap: 20px;
        margin-bottom: 42px;
    }
    
    .stats-grid {
        gap: 14px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .login-panel {
        padding: 48px 40px;
    }
    
    .login-card {
        transform: translateY(0);
    }
    
    .wave-1,
    .wave-2 {
        display: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .login-page {
        padding: 28px 16px;
    }
    
    .glass-container {
        border-radius: 20px;
    }
    
    .poster-panel {
        padding: 36px 28px;
    }
    
    .poster-heading {
        font-size: 36px;
    }
    
    .poster-subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }
    
    .feature-list {
        gap: 18px;
        margin-bottom: 36px;
    }
    
    .feature-item {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .login-panel {
        padding: 36px 28px;
    }
    
    .login-card {
        padding: 36px 28px;
    }
    
    .card-title {
        font-size: 30px;
    }
    
    .card-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .logo-badge {
        height: 76px;
    }
    
    .gnb-logo {
        height: 60px;
    }
    
    .logo-tile {
        padding: 20px 24px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .poster-panel {
        padding: 32px 24px;
    }
    
    .poster-heading {
        font-size: 32px;
    }
    
    .login-panel {
        padding: 32px 24px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .btn-signin,
    .btn-social {
        font-size: 14px;
        padding: 15px 18px;
    }
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
.form-input:focus-visible,
.form-checkbox:focus-visible,
.btn-signin:focus-visible,
.btn-social:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
