/*
 * Portal System - Shared Component Styles
 * 
 * File: /volume1/dweb/portal/public/css/style.css
 * Created: 2025-09-15
 * Modified: 2025-09-21
 * Version: 2.0
 * 
 * Description: Shared component styles for landing, login, and common elements
 * Dependencies: design-system.css (must be loaded first)
 * 
 * Changes in v2.0:
 * - Removed redundant variables (now in design-system.css)
 * - Consolidated duplicate button/form styles
 * - Improved organization with clear sections
 * - Used design system tokens consistently
 * 
 * Part of RAD Engineers Intranet Portal System
 */

/* === BASE LAYOUT === */
body {
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

body.landing-page,
body.login-page {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

/* === LAYOUT CONTAINERS === */
.center-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    width: 100%;
}

.main-container.landing-container,
.main-container.login-container {
    background: var(--surface-primary);
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    text-align: center;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
/* FOUC prevention - shared pattern */
.main-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* === TYPOGRAPHY COMPONENTS === */
.greeting-text {
    color: var(--text-primary);
    font-size: var(--heading-lg);
    margin: calc(var(--space-md) / 5) 0;
    font-weight: var(--weight-light);
}

.company-name {
    color: var(--text-primary);
    font-family: Georgia, serif;
    font-size: var(--heading-xl);
    font-weight: var(--weight-bold);
    margin: var(--space-xl) 0 var(--space-lg) 0;
    letter-spacing: -0.02em;
}

.intranet-text {
    color: var(--text-secondary);
    font-size: var(--heading-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-xxl);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: var(--heading-md);
    font-weight: var(--weight-normal);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.description {
    color: var(--text-secondary);
    font-size: var(--text-responsive);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.datetime-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--surface-divider);
    font-weight: var(--weight-light);
}
/* === LOGOUT TEXT === */
.logout-text {
    color: var(--text-primary);
    font-size: var(--heading-xl);
    font-weight: var(--weight-bold);
    margin: var(--space-xl) 0 var(--space-lg) 0;
    letter-spacing: -0.02em;
}

/* === LOGO COMPONENT === */
.logo-container {
    margin: var(--space-xl) 0;
}

.login-container .logo-container {
    margin: var(--space-md) 0;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

/* === BUTTON SYSTEM === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-primary i {
    font-size: 1.1em;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    margin-top: var(--space-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary i {
    font-size: 1em;
}

/* === FORM SYSTEM === */
.form-group {
    text-align: left;
    margin-bottom: var(--space-xs);
}

.form-label {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-xs);
    display: block;
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    box-sizing: border-box;
    margin-bottom: var(--space-sm);
}

.form-control:focus {
    border-color: var(--input-border-focus);
    box-shadow: var(--input-focus-shadow);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    text-align: left;
}

.form-check-input {
    margin-right: var(--space-sm);
}

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
}

/* === ALERT SYSTEM === */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    font-weight: var(--weight-medium);
}

.alert-danger {
    background: var(--alert-danger-bg);
    color: var(--text-error);
    border-left: 4px solid var(--alert-danger-border);
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--text-success);
    border-left: 4px solid var(--alert-success-border);
}

/* Status/feedback pages icon */
.page-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

/* Highlighted user text */
.username-highlight {
    color: var(--primary-blue);
    font-weight: var(--weight-semibold);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    body.landing-page,
    body.login-page {
        padding: 0.2rem;
    }
    
    .center-layout {
        min-height: 85vh;
    }
    
    .main-container.landing-container,
    .main-container.login-container {
        padding: var(--space-lg);
        max-width: 100%;
        margin: var(--space-md) 0;
    }
    
    .logo-container img {
        max-width: 100px;
    }
    
    .company-name {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: var(--font-size-sm);
    }
    
    .datetime-text {
        font-size: var(--font-size-xs);
    }
}