﻿* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --primary-h: 46;
    --primary-s: 67%;
    --primary-l: 47%;
    /*    --primary-h: 219;
    --primary-s: 62%;
    --primary-l: 36%;*/
    --color-primary-shift-1: hsl( calc(var(--primary-h) - 3), calc(var(--primary-s) - 29%), calc(var(--primary-l) + 61%) ); /* #f5f7fa  */
    --color-primary-shift-2: hsl( calc(var(--primary-h) - 2), calc(var(--primary-s) - 27%), calc(var(--primary-l) + 47%) ); /* #c3cfe2  */
}
body {
    user-select: none;
    display: flex;
    cursor: default;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary-shift-1) 0%, var(--color-primary-shift-2) 100%);
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

    /* Geometric background pattern */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 80%, rgba(59, 105, 178, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59, 105, 178, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(59, 105, 178, 0.05) 0%, transparent 50%);
        z-index: 0;
    }

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 105, 178, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 105, 178, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c9a227;
    min-width: 120px;
    justify-content: center;
}

    .language-toggle:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 35px rgba(59, 105, 178, 0.25);
        background: rgba(255, 255, 255, 1);
        border-color: #c9a227;
    }

    .language-toggle:active {
        transform: translateY(-1px) scale(1.02);
    }

    .language-toggle i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .language-toggle:hover i {
        transform: rotate(180deg);
    }

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 0;
    width: 100%;
    max-width: 420px;
    min-height: 600px;
    height: auto;
    box-shadow: 0 25px 50px rgba(59, 105, 178, 0.15), 0 15px 35px rgba(59, 105, 178, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 40px 20px 40px;
    width: 100%;
    position: relative;
    flex: 1;
    justify-content: space-between;
    min-height: 500px;
}

.form-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    background: transparent;
    animation: subtlePulse 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 30px auto;
    width: 100%;
    max-width: 200px;
    height: 80px;
    position: relative;
}

    .logo-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: shimmer 3s ease-in-out infinite;
    }

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-container i {
    font-size: 48px;
    color: #c9a227;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

    .input-group .icon {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        color: #c9a227;
        z-index: 5;
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .input-group input {
        width: 100%;
        padding: 16px 55px 16px 20px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        outline: none;
        font-size: 16px;
        color: #2d3748;
        font-weight: 500;
        text-align: right;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(59, 105, 178, 0.08);
        height: 56px;
    }

        .input-group input::placeholder {
            color: #a0aec0;
            font-size: 15px;
            font-weight: 400;
        }

        .input-group input:focus {
            border-color: #c9a227;
            background: #f7fafc;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 105, 178, 0.15), 0 0 0 3px rgba(59, 105, 178, 0.1);
        }

            .input-group input:focus + .icon {
                color: #c9a227;
                transform: translateY(-50%) scale(1.1);
            }

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .checkbox-container:hover {
        color: #c9a227;
    }

    .checkbox-container input {
        display: none;
    }

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 105, 178, 0.1);
    flex-shrink: 0;
}

    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
        left: 6px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.checkbox-container input:checked + .checkmark {
    background: #c9a227;
    border-color: #c9a227;
    box-shadow: 0 4px 15px rgba(59, 105, 178, 0.3);
}

    .checkbox-container input:checked + .checkmark:after {
        display: block;
    }

.forgot-password {
    color: #c9a227;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-password:hover {
        color: #b18735;
        text-decoration: none;
    }

    .forgot-password::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #c9a227;
        transition: width 0.3s ease;
    }

    .forgot-password:hover::after {
        width: 100%;
    }

.login-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #c9a227, #b18735);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 105, 178, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .login-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s;
    }

    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(59, 105, 178, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

        .login-button:hover::before {
            left: 100%;
        }

    .login-button:active {
        transform: translateY(-1px);
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.loader {
    border: 3px solid rgba(59, 105, 178, 0.2);
    border-top: 3px solid #c9a227;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.validation-summary-errors {
    width: 100%;
    margin-top: 15px;
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    text-align: right;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(229, 62, 62, 0.05));
    padding: 12px 16px;
    border-radius: 12px;
    border-right: 3px solid #e53e3e;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Social Media Section */
.social-section {
    width: 100%;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(59, 105, 178, 0.1);
    margin-top: auto;
}

.social-title {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(59, 105, 178, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c9a227, #b18735);
}

    .social-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s;
    }

    .social-icon:hover::before {
        left: 100%;
    }

    .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 12px 30px rgba(59, 105, 178, 0.25);
    }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Language Switch Animation */
.login-container {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .login-container.lang-switch {
        transform: rotateY(5deg) scale(0.98);
        opacity: 0.8;
    }

/* English Styles */
.english .login-form {
    direction: ltr;
}

.english .input-group .icon {
    right: auto;
    left: 20px;
}

.english .input-group input {
    text-align: left;
    padding: 16px 20px 16px 55px;
}

.english .checkmark {
    margin-left: 0;
    margin-right: 10px;
}

.english .error-message {
    text-align: left;
    border-right: none;
    border-left: 3px solid #e53e3e;
}

.english .language-toggle {
    left: 20px;
    right: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-container {
        max-width: 100%;
        min-height: auto;
        border-radius: 25px;
        width: 100%;
    }

    .login-form {
        padding: 30px 30px 15px 30px;
        min-height: auto;
    }

    .logo-container {
        height: 70px;
        margin: 15px auto 25px auto;
        max-width: 180px;
    }

        .logo-container i {
            font-size: 40px;
        }

    .input-group {
        margin-bottom: 18px;
    }

        .input-group input {
            padding: 14px 50px 14px 18px;
            font-size: 15px;
            height: 52px;
        }

    .english .input-group input {
        padding: 14px 18px 14px 50px;
    }

    .input-group .icon {
        font-size: 16px;
        right: 18px;
    }

    .english .input-group .icon {
        left: 18px;
    }

    .login-button {
        padding: 16px;
        font-size: 15px;
        height: 52px;
        border-radius: 14px;
    }

    .options {
        margin-bottom: 25px;
        gap: 10px;
    }

    .checkbox-container {
        font-size: 13px;
    }

    .forgot-password {
        font-size: 13px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .social-title {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .language-toggle {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
        min-width: 110px;
    }

    .english .language-toggle {
        left: 15px;
        right: auto;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-form {
        padding: 25px 25px 15px 25px;
    }

    .logo-container {
        height: 60px;
        margin: 10px auto 20px auto;
        max-width: 160px;
    }

        .logo-container i {
            font-size: 36px;
        }

    .input-group input {
        padding: 12px 45px 12px 16px;
        font-size: 14px;
        height: 48px;
    }

    .english .input-group input {
        padding: 12px 16px 12px 45px;
    }

    .input-group .icon {
        font-size: 15px;
        right: 16px;
    }

    .english .input-group .icon {
        left: 16px;
    }

    .login-button {
        padding: 14px;
        font-size: 14px;
        height: 48px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .language-toggle {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Large Mobile / Small Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        max-width: 450px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    body {
        padding: 40px;
    }

    .login-container {
        max-width: 480px;
        min-height: 650px;
    }

    .login-form {
        padding: 50px 50px 25px 50px;
        min-height: 550px;
    }

    .logo-container {
        height: 90px;
        margin: 30px auto 35px auto;
        max-width: 220px;
    }
}

.text-danger {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}
