/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Split Layout — whole page scrolls together */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side: Image */
.login-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Side: Form */
.login-form-container {
    flex: 0 0 50%;
    max-width: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
}

.login-form-content {
    width: 100%;
    max-width: 480px;
}

/* Logo */
.logo {
    text-align: right;
    margin-bottom: 35px;


}

.logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-left: 18rem;
}

/* Typography */
h2 {
    font-size: 28px;
    font-weight: 400;
    color: #222;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: right;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}

/* Icons */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
    font-size: 16px;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-wrapper input:focus {
    border-color: #015599;
}

/* Error State */
.input-group.error input {
    border-color: #dc3545;
}

.input-group.error label {
    color: #333;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.input-group.error .error-message {
    display: flex;
}

/* Placeholder */
::placeholder {
    color: #bbb;
    opacity: 1;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    font-size: 14px;
    margin-top: 8px;
}

.forgot-password {
    color: #015599;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

/* Sign In Button */
.btn-signin {
    width: 100%;
    padding: 16px;
    background-color: #015599;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 30px;
    font-family: 'Cairo', 'Inter', sans-serif;
}

.btn-signin:hover {
    background-color: #08885E;
}

/* Bottom Links */
.register-link {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 500;
}

.register-link a {
    color: #015599;
    text-decoration: none;
    font-weight: 600;
}

.document-inquiry {
    text-align: center;
    margin-bottom: 30px;
}

.document-inquiry a {
    color: #015599;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
.login-footer {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    padding-top: 15px;
    border-top: none;
}

.login-footer p {
    margin-bottom: 5px;
}

.login-footer a {
    color: #015599;
    text-decoration: none;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-image {
        display: none;
    }

    .login-form-container {
        width: 100%;
        max-width: 100%;
        padding: 40px 24px;
        flex: none;
        min-height: 100vh;
        justify-content: center;
    }

    .logo {
        text-align: right;
        margin-bottom: 35px;
        display: flex;
        justify-content: flex-start;
    }

    .logo img {
        width: 250px;
        height: 250px;
        margin: 0;
        margin-left: 0;
    }

    h2 {
        text-align: right;
        margin-bottom: 16px;
        font-family: 'Cairo', 'Inter', sans-serif;
    }

    .input-wrapper input {
        padding: 16px 48px;
    }

    .login-form-content {
        margin: 0 15px;
    }

    /* RTL mobile adjustments handled in lang.css */
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 24px 18px;
    }

    h2 {
        font-size: 24px;
    }

    .btn-signin {
        font-size: 15px;
        padding: 12px;
    }
}