

/* frontend/css/global.css */

/* 1. Import 'Poppins' font from Google for a stylish look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --primary-hover: #1e293b;
    --bg-color: #f1f5f9;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --error-color: #ef4444;
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --error-bg: #fee2e2;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    
    /* 2. Apply the new stylish font */
    --font-family: 'Poppins', sans-serif; 
}

/* ... keep your body {} rule ... */

.auth-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stacks the header and card properly */
    min-height: 100vh;
    
    background-image: url('../images/login-bg.jpg'); 
    background-size: cover;
    
    /* 3. FIX: Anchor the image to the top so the face is always visible */
    background-position: top center; 
    
    background-attachment: fixed;
    position: relative;
}

.auth-layout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay to make white text pop */
    z-index: 0;
}

/* Base Body Style */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: block;
}

/* Ensure the login card sits above the dark overlay */
.login-container {
    position: relative;
    z-index: 1; 
}

    /* CSS Reset */
    
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
}
    
