/**
 * Authentication Pages Styles
 * Multi-tenant SaaS ATS Platform
 * 
 * This file contains all CSS specific to authentication pages
 * (login.php, register.php, etc.)
 */

/* ========================================
   Authentication Page Layout Overrides
   ======================================== */
body.auth-page {
    display: block !important;
    grid-template-areas: none !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background-color) 100%);
}

body.auth-page .sidebar {
    display: none !important;
}

body.auth-page .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

/* ========================================
   Authentication Container
   ======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========================================
   Authentication Card
   ======================================== */
.auth-card {
    background: var(--lighter-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
}

/* Wider card for registration page */
body.auth-page .auth-card.register-card {
    max-width: 700px;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Authentication Card Sections
   ======================================== */
.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    background: var(--light-color);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Demo Card
   ======================================== */
.demo-card {
    background: var(--lighter-color);
    border: 1px solid var(--info-color);
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
}

.demo-header {
    background: var(--info-color);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

/* ========================================
   Back Link
   ======================================== */
.back-link {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lighter-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    color: var(--primary-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .auth-header {
        padding: 1.5rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .back-link {
        position: static;
        transform: none;
        margin: 2rem auto;
        display: inline-block;
    }
}
