/* ============================================
   DESIGN SYSTEM & VARIABLES
   ============================================ */
:root {
    /* Colors - Corporate Blue Theme */
    --color-primary: #002F4F;
    --color-primary-dark: #00243d;
    --color-primary-light: #004578;
    --color-accent: #FF8500;
    --color-accent-hover: #e85a28;

    --color-success: #4caf50;
    --color-success-bg: #e8f5e9;
    --color-error: #FF0000;
    --color-error-bg: #FFEDED;
    --color-warning-bg: #FFF6DB;
    --color-warning: #F6C52B;
    --color-info: #2196F3;
    --color-info-bg: #E3F2FD;

    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-text-white: #ffffff;

    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-input: #ffffff;
    --color-border: #e0e0e0;
    --color-border-focus: #003057;

    /* Typography */
    --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-xxs: 0.625rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xxs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-width-form: 480px;
    --brand-panel-width: 65%;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

.row {
    padding: 0;
}

/* ============================================
   LAYOUT - AUTH CONTAINER
   ============================================ */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.auth-container .gx_usercontrol {
    width: 100%;
}

.auth-container .auth-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   BRAND PANEL (LEFT SIDE)
   ============================================ */

.brand-panel .gxwebcomponent {
    width: 100%;
    height: 100%;
}

.brand-panel {
    flex: 0 0 var(--brand-panel-width);
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}

.brand-panel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ============================================
   AUTH PANEL (RIGHT SIDE)
   ============================================ */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-secondary);
    position: relative;
}

.auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%,
            rgba(0, 48, 87, 0.03) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 70%,
            rgba(255, 107, 53, 0.03) 0%,
            transparent 50%);
    pointer-events: none;
}

.auth-wrapper {
    width: 100%;
    max-width: var(--max-width-form);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

/* ============================================
   AUTH FORM CARD
   ============================================ */
.auth-form {
    background: var(--color-bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: formSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --brand-panel-width: 45%;
    }

    .brand-message h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .brand-panel {
        flex: 0 0 auto;
        min-height: 40vh;
        padding: var(--spacing-xl);
    }

    .brand-image {
        display: none;
    }

    .auth-panel {
        min-height: 60vh;
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .brand-panel {
        min-height: 30vh;
        padding: var(--spacing-lg);
    }

    .brand-message h1 {
        font-size: 1.25rem;
    }

    .auth-panel {
        padding: var(--spacing-md);
    }

    .auth-form {
        padding: var(--spacing-xl);
    }
}