/* Premium Login Styles - 2026 SaaS Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Teal Theme */
    --primary-color: #0F766E;
    --primary-gradient: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    --bg-color: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(15, 118, 110, 0.15);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Page Layout */
.login-page-container {
    display: flex;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

/* Left Side - Login */
.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Typography */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
    text-align: left;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
}

.login-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.login-link:hover {
    color: #115E59;
    text-decoration: underline;
}

/* Form Groups & Floating Labels */
.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    /* Renamed from input-group to avoid conflict */
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    /* Left padding for icon */
    font-size: 0.95rem;
    color: var(--text-main);
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    box-sizing: border-box;
    height: 52px;
    /* Fixed height for consistency */
}

/* Floating Label Logic */
.form-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 0.25rem;
}

/* Input Focus & Filled States */
.form-input:focus,
.form-input:not(:placeholder-shown) {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 0;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    padding: 0 0.4rem;
}

.form-input:focus~.input-icon {
    color: var(--primary-color);
}

/* Buttons */
.btn-login-submit {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

/* Compatibility Overrides */
.btn-login-submit.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-login-submit.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

.page-card-body.invalid {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border: 1px solid #ef4444;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Original Card Styles override if page-card class is added */
.login-card.page-card {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

/* Footer & Social */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-login-divider::before,
.social-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-login-divider span {
    padding: 0 1rem;
    font-weight: 500;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn-social:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

/* Right Side - Banner */
.login-banner-wrapper {
    flex: 1;
    display: none;
    /* Mobile hidden */
    position: relative;
    background-color: #F0FDFA;
    /* Light teal tint */
    overflow: hidden;
}

@media (min-width: 1024px) {
    .login-banner-wrapper {
        display: block;
    }
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.banner-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #CCFBF1, #F0FDFA 60%, #fff);
    position: relative;
}

/* Geometric Pattern Overlay */
.banner-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 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='%230F766E' 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");
    opacity: 0.6;
}

.banner-text-content {
    text-align: center;
    z-index: 10;
    max-width: 80%;
}

/* Banner Arabic/Logo Area */
.banner-logo-wrapper {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.banner-logo-wrapper img {
    height: 120px;
    /* Large Arabic Logo */
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(15, 118, 110, 0.2));
}

.banner-title {
    font-size: 3.5rem;
    /* Large Headline */
    font-weight: 800;
    color: #115E59;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: #576b6a;
    font-weight: 500;
}

/* Yooltech Footer in Banner */
.banner-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    font-size: 0.85rem;
    color: #0F766E;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem;
        box-shadow: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }

    .login-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .login-subtitle {
        text-align: center;
    }

    .form-input {
        background: #fff;
    }
}