﻿/* =========================================
                   BRAND TOKENS
                   ========================================= */
:root {
    --israa-navy: #1A365D;
    --israa-blue: #0885C8;
    --israa-purple: #805AD5;
    --white: #FFFFFF;
    --text-main: #1A202C;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --radius: 8px;
    --font-main: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    outline: none;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-main);
    overflow: hidden; /* Professional App feel */
}

/* =========================================
                   LAYOUT: SPLIT SCREEN
                   ========================================= */
.split-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    flex-direction: row;
}

/* 1. BRAND SIDE (RIGHT) - The "Better Background" */
.brand-panel {
    width: 45%;
    background-color: var(--israa-navy);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 60px;
    overflow: hidden;
}

/* Sophisticated Gradient Mesh Background */
.brand-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(8, 133, 200, 0.9) 100%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Deep Glow Accent */
.brand-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(128, 90, 213, 0.4) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    z-index: 2;
    animation: pulse 10s infinite alternate;
}

@@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.logo-display {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.brand-desc {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
}

/* 2. FORM SIDE (LEFT) - Clean Workspace */
.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--white);
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

/* Header */
.login-header {
    text-align: right;
    margin-bottom: 2.5rem;
    border-right: 4px solid var(--israa-blue);
    padding-right: 20px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--israa-navy);
    margin: 0 0 5px 0;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Form Logic & Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background: #F8FAFC;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-align: right;
    font-family: var(--font-main);
}

    .form-input:focus {
        background: #fff;
        border-color: var(--israa-blue);
        box-shadow: 0 0 0 4px rgba(8, 133, 200, 0.1);
    }

/* Modern Floating Labels */
.form-label {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: transparent;
    padding: 0 4px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--israa-blue);
    font-weight: 700;
    background-color: #fff;
}

/* Footer Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Custom Checkbox */
.check-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

    .check-wrap input {
        display: none;
    }

.check-visual {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.check-wrap input:checked + .check-visual {
    background: var(--israa-blue);
    border-color: var(--israa-blue);
}

.check-visual::after {
    content: '✔';
    color: white;
    font-size: 12px;
    display: none;
}

.check-wrap input:checked + .check-visual::after {
    display: block;
}

.forgot-link {
    color: var(--israa-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: var(--israa-navy);
    }

/* Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    /* Brand Gradient */
    background: linear-gradient(90deg, var(--israa-blue) 0%, var(--israa-navy) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-main);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(8, 133, 200, 0.2);
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(8, 133, 200, 0.3);
    }

.copyright {
    position: absolute;
    bottom: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile */
@@media (max-width: 900px) {
    .split-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .brand-panel {
        width: 100%;
        padding: 40px 20px;
        min-height: 250px;
    }

    .brand-glow {
        display: none;
    }

    .logo-display {
        width: 150px;
        margin-bottom: 1rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-desc {
        display: none;
    }

    .login-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .login-header {
        text-align: center;
        border-right: none;
    }

    .copyright {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }
}
