:root {
    --gold-glow: #e5c158;
    --font-primary: 'Cairo', 'Outfit', 'Poppins', sans-serif;
    --text-light: #d6e8f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #030712;
    font-family: var(--font-primary);
    overflow: hidden;
}

/* Split Screen Container */
.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #030712;
    overflow: hidden;
}

/* Left Column: Background Panel with stencils */
.left-bg-panel {
    width: 50%;
    height: 100%;
    background: url('/files/images/فين_الاشكال_بتاعه_الطلاب_والسنتر_202605191834.jpeg') no-repeat;
    background-size: cover;
    background-position: left center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Right Column: Form Panel */
.right-form-panel {
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, #0a1b33 0%, #030712 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

/* Premium Glassmorphic Login Card */
.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(13, 26, 44, 0.5);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.06),
                -10px 10px 30px rgba(229, 193, 88, 0.04);
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Dual Portal Switcher Tabs */
.portal-selector-tabs {
    display: flex;
    background: rgba(4, 10, 20, 0.7);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.portal-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(214, 232, 249, 0.7);
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.portal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.portal-tab-btn.active {
    background: linear-gradient(135deg, rgba(229, 193, 88, 0.25), rgba(229, 193, 88, 0.1));
    color: var(--gold-glow);
    border: 1px solid rgba(229, 193, 88, 0.45);
    box-shadow: 0 4px 12px rgba(229, 193, 88, 0.15);
}

/* Header Styling */
.card-header-custom {
    margin-bottom: 25px;
}

.login-title {
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.login-title strong {
    font-weight: 600;
}

.teacher-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(229, 193, 88, 0.12);
    border: 1px solid rgba(229, 193, 88, 0.35);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-glow);
    letter-spacing: 0.2px;
}

.text-gold {
    color: var(--gold-glow) !important;
}

.brand-en {
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: var(--gold-glow);
    letter-spacing: 0.5px;
    direction: ltr;
    display: inline-block;
}

.signup-text {
    font-size: 14px;
    color: rgba(214, 232, 249, 0.7);
    line-height: 1.6;
}

/* Form Controls */
.form-group-custom {
    margin-bottom: 22px;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control-custom {
    width: 100%;
    background: rgba(4, 10, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    padding-left: 45px;
    color: #ffffff;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control-custom:focus {
    background: rgba(4, 10, 20, 0.85);
    border-color: rgba(229, 193, 88, 0.6);
    box-shadow: 0 0 12px rgba(229, 193, 88, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
}

/* Show/Hide password toggle */
.toggle-password-icon {
    position: absolute;
    left: 15px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(214, 232, 249, 0.6);
    transition: color 0.2s ease;
    z-index: 12;
    font-size: 16px;
    padding: 2px;
}

.toggle-password-icon:hover {
    color: #ffffff;
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--text-light);
    user-select: none;
    margin-top: 10px;
}

.checkbox-container input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #16365c;
}

/* Premium Submit Button */
.btn-signin-custom {
    width: 100%;
    background: linear-gradient(180deg, rgba(16, 42, 70, 0.85), rgba(7, 24, 43, 0.85));
    border: 1px solid rgba(229, 193, 88, 0.75);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                0 0 10px rgba(229, 193, 88, 0.2);
    transition: all 0.3s ease;
    margin-top: 25px;
}

.btn-signin-custom:hover {
    background: linear-gradient(180deg, rgba(22, 58, 96, 0.95), rgba(11, 35, 62, 0.95));
    border-color: rgba(229, 193, 88, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(229, 193, 88, 0.5);
    transform: translateY(-1px);
}

/* Validation Error Messaging */
.error-message-custom {
    color: #ff5252;
    font-size: 13.5px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    text-align: right;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    .split-container {
        flex-direction: column;
    }

    .left-bg-panel {
        display: none;
    }

    .right-form-panel {
        width: 100%;
        height: 100vh;
        background: url('/files/images/فين_الاشكال_بتاعه_الطلاب_والسنتر_202605191834.jpeg') no-repeat center center;
        background-size: cover;
        padding: 25px 15px;
    }

    .login-card {
        width: 92%;
        max-width: 400px;
        padding: 35px 25px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }
}
