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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    flex-direction: row-reverse;
    height: 100vh;
    width: 100%;
}

/* Left Section - Image */
.login-left {
    
    width: 50%;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-left img {
    width: 100%;
    height: 100%;

    object-fit: cover;
   
    display: block;

}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,165,0,0.05) 0%, rgba(139,69,19,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 40px;
}

.icon-overlay {
    position: absolute;
    color: rgba(135, 206, 250, 0.6);
    font-size: 48px;
    z-index: 2;
}

.icon-overlay.icon-1 { top: 10%; left: 10%; }
.icon-overlay.icon-2 { top: 35%; left: 15%; }
.icon-overlay.icon-3 { top: 15%; right: 15%; }
.icon-overlay.icon-4 { top: 40%; right: 20%; }
.icon-overlay.icon-5 { bottom: 20%; right: 10%; }

/* Right Section - Form */
.login-right {
    flex: 0 0 50%;
    max-width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    position: relative;
    min-height: 100vh;
}

/* Logo in Top Right Corner */
.logo-top-right {
    position: absolute;
    top: 20px;
    right: 60px;
    z-index: 10;
    margin-bottom: 20px;
}

.logo-top-right img {
    height: 70px;
    width: auto;
    display: block;
}

.signup-btn-top {
    position: absolute;
    top: 30px;
    left: 60px;
    padding: 10px 30px;
    border: 2px solid #d97941;
    color: #d97941;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.signup-btn-top:hover {
    background: #d97941;
    color: white;
    text-decoration: none;
}

.login-form-container {
    max-width: 450px;
    margin: auto;
    width: 100%;
    padding-top: 110px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container img {
    max-width: 100%;
    height: 100vh;
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #d97941 0%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.welcome-text {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: right;
    clear: both;
    padding-top: 5px;
}

.login-instruction {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: right;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: right;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    direction: rtl;
}

.form-control-custom:focus {
    outline: none;
    border-color: #d97941;
    box-shadow: 0 0 0 3px rgba(217, 121, 65, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-direction: row-reverse;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.forgot-password {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #d97941;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d97941 0%, #8b4513 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 121, 65, 0.3);
}

.additional-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-demo, .btn-subscribe {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-demo {
    background: #ffc107;
    color: #333;
}

.btn-demo:hover {
    background: #ffb300;
    color: #333;
    text-decoration: none;
}

.btn-subscribe {
    background: #34cea7;
    color: white;
}

.btn-subscribe:hover {
    background: #2ab88a;
    color: white;
    text-decoration: none;
}

.alert-custom {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger-custom {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.copyrights {
    text-align: center;
    margin-top: auto;
    padding-top: 30px;
    font-size: 14px;
    color: #999;
}

/* Responsive */
/* Common laptop screens (14 inch) - 1366x768, 1920x1080 */
@media (min-width: 993px) and (max-width: 1600px) and (max-height: 900px) {
    .login-form-container {
        padding-top: 120px;
    }
    
    .logo-top-right {
        top: 20px;
    }
    
    .logo-top-right img {
        height: 60px;
    }
    
    .welcome-text {
        font-size: 26px;
        margin-bottom: 12px;
        margin-top: 10px;
    }
    
    .login-instruction {
        font-size: 17px;
    }
}

/* Medium screens with very short height */
@media (min-width: 993px) and (max-width: 1400px) and (max-height: 500px) {
    .login-form-container {
        padding-top: 65px;
    }
    
    .logo-top-right {
        top: 12px;
    }
    
    .logo-top-right img {
        height: 40px;
    }
    
    .welcome-text {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .login-instruction {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
}

@media (max-width: 1200px) {
    .login-left {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .login-right {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 30px 40px;
    }
    
    .signup-btn-top {
        left: 40px;
    }
    
    .logo-top-right {
        right: 40px;
        top: 15px;
    }
    
    .logo-top-right img {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    /* Hide background image on tablets and mobile */
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
        min-height: 100vh;
    }
    
    .signup-btn-top {
        left: 20px;
        top: 20px;
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .logo-top-right {
        right: 20px;
        top: 15px;
    }
    
    .logo-top-right img {
        height: 50px;
    }
    
    .additional-links {
        flex-direction: column;
    }
    
    .icon-overlay {
        font-size: 36px;
    }
    
    .login-form-container {
        margin-top: 60px;
        padding-top: 0;
    }
}

@media (max-width: 576px) {
    .login-right {
        padding: 20px 15px;
    }
    
    .login-form-container {
        padding-top: 80px;
    }
    
    .logo-top-right {
        right: 15px;
        top: 15px;
    }
    
    .logo-top-right img {
        height: 50px;
    }
    
    .welcome-text {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .login-instruction {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .signup-btn-top {
        left: 15px;
        top: 15px;
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-control-custom {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
    
    .btn-demo, .btn-subscribe {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .icon-overlay {
        font-size: 28px;
    }
    
    .login-form-container {
        padding: 0;
        padding-top: 0;
        margin-top: 50px;
    }
    
    .login-left {
        display: none;
    }
    
    .copyrights {
        font-size: 12px;
        padding-top: 20px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .logo-top-right img {
        height: 35px;
    }
    
    .welcome-text {
        font-size: 20px;
    }
    
    .login-instruction {
        font-size: 14px;
    }
    
    .signup-btn-top {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Wide screens with short height (landscape) */
@media (min-width: 993px) and (max-height: 600px) {
    .login-right {
        padding: 15px 40px;
    }
    
    .login-form-container {
        margin-top: 0;
        padding-top: 70px;
    }
    
    .logo-top-right {
        top: 15px;
    }
    
    .logo-top-right img {
        height: 45px;
    }
    
    .welcome-text {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .login-instruction {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-label {
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .form-control-custom {
        padding: 10px 15px;
    }
    
    .form-options {
        margin: 10px 0;
    }
    
    .btn-login {
        padding: 12px;
        margin-top: 10px;
    }
    
    .additional-links {
        margin-top: 10px;
        gap: 8px;
    }
    
    .btn-demo, .btn-subscribe {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .copyrights {
        padding-top: 10px;
        font-size: 12px;
    }
}

/* Landscape mode for mobile/tablets */
@media (max-width: 992px) and (max-height: 600px) and (orientation: landscape) {
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 15px 20px;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .login-form-container {
        margin-top: 45px;
        padding-top: 0;
    }
    
    .welcome-text {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .login-instruction {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .copyrights {
        padding-top: 10px;
    }
}

