/* --- 1. MODERN VARIABLES & RESET --- */
:root {
    /* Your Custom Gradient */
    --bg-gradient: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
    
    /* Glassmorphism Variables */
    --card-bg: rgba(255, 255, 255, 0.15); 
    --card-border: rgba(255, 255, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
    
    /* Buttons */
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #5E4996;
    
    /* Fonts */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* --- 2. LAYOUT GRID --- */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    gap: 60px;
    z-index: 1;
}

/* --- LEFT SIDE: HERO --- */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}



h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

p.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    font-weight: 500;
}

/* --- RIGHT SIDE: GLASS CARD --- */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    padding: 48px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* --- FORM ELEMENTS (New for PHP) --- */
.form-group {
    margin-bottom: 16px;
}

.input-glass {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2); /* Darker semi-transparent bg for inputs */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.input-glass:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Error Messages */
.error-msg {
    background: rgba(220, 38, 38, 0.6); /* Red transparent */
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(255,100,100,0.3);
    font-weight: 500;
}

/* --- BUTTONS --- */
.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.btn {
    height: 50px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none; /* For <a> tags acting as buttons */
}

/* Social Buttons */
.btn-social {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px; /* Spacing between social buttons */
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Primary Button */
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: currentColor;
}

/* --- UTILITIES --- */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.divider span {
    margin: 0 12px;
}

.footer-text {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.footer-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
        text-align: center;
    }

    .hero-section {
        align-items: center;
    }

    h1 {
        font-size: 40px;
    }

    .glass-card {
        padding: 30px;
    }
}