@font-face {
    font-family: "DroidKufi-regular";
    font-style: normal;
    font-weight: 400;
    src: url("//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v3/DroidKufi-Regular.eot?#iefix") format("embedded-opentype"), 
         url("//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v3/DroidKufi-Regular.woff2") format("woff2"), 
         url("//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v3/DroidKufi-Regular.woff") format("woff"), 
         url("//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v3/DroidKufi-Regular.ttf") format("truetype");
}

:root {
    --green-primary: #1ed085;
    --green-secondary: #19b372;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DroidKufi-regular', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    overflow-x: hidden;
    direction: rtl;
}

.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: radial-gradient(ellipse at top, var(--green-primary) 0%, var(--green-secondary) 50%, #15a068 100%);
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: -1s;
}

.floating-shape:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 55%;
    left: 75%;
    animation-delay: -3s;
}

.floating-shape:nth-child(3) {
    width: 90px;
    height: 90px;
    top: 75%;
    left: 15%;
    animation-delay: -2s;
}

.floating-shape:nth-child(4) {
    width: 60px;
    height: 60px;
    top: 25%;
    left: 85%;
    animation-delay: -4s;
}

.floating-shape:nth-child(5) {
    width: 140px;
    height: 140px;
    top: 80%;
    left: 60%;
    animation-delay: -5s;
}

.login-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

.info-section {
    flex: 1.5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(123, 131, 128, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 90%;
    background: url('../images/AmyazShield.png') center/contain no-repeat;
    opacity: 0.12;
    z-index: -1;
    filter: brightness(1.3) contrast(1.2);
    animation: shieldPulse 4s ease-in-out infinite;
}

.info-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(30, 208, 133, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 131, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.login-card {
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-secondary), var(--green-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.logo {
    width: 100px;
    height: 100px;
    background: url('../images/AmyazLogo.png') center/contain no-repeat;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 15px 30px rgba(30, 208, 133, 0.3),
        0 0 0 3px rgba(30, 208, 133, 0.1);
    border: 2px solid rgba(30, 208, 133, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.logo:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.login-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.info-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.info-logo {
    width: 240px;
    height: 240px;
    background: url('../images/Logo.png') center/contain no-repeat;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-logo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.info-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3),
        transparent,
        rgba(255, 255, 255, 0.3)
    );
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
}

.info-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    display: inline-block;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 2px;
}

.info-description {
    font-size: 1.3rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
}

.download-btn::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.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: 2px solid #e8f4f0;
    border-radius: 16px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fafffe;
    font-weight: 500;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--green-primary);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(30, 208, 133, 0.1),
        0 8px 20px rgba(30, 208, 133, 0.15);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
    font-style: italic;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-primary);
    font-size: 1.2rem;
    z-index: 2;
}

.login-btn {
    width: 100%;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 208, 133, 0.3);
}

.login-btn::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.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 208, 133, 0.4);
    color: white;
    text-decoration: none;
}

.error-message {
    background: linear-gradient(135deg, #fee, #fdd);
    color: #c53030;
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 5px solid #f56565;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% { 
        transform: translateY(-10px) rotate(240deg) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes shieldPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.12;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.18;
    }
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login-section {
        flex: none;
        min-height: 60vh;
        padding: 1.5rem;
    }
    
    .info-section {
        flex: none;
        min-height: 40vh;
        padding: 2rem 1.5rem;
    }
    
    .login-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .info-title {
        font-size: 2.2rem;
    }
    
    .info-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .info-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .download-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .info-title {
        font-size: 2rem;
    }
    
    .info-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .form-input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .login-section:hover .login-card {
        transform: translateY(-8px);
        box-shadow: 
            0 40px 80px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .info-section:hover .info-logo {
        transform: scale(1.1);
    }
    
    .info-section:hover::before {
        animation-play-state: paused;
        opacity: 0.2;
    }
}

@media print {
    .background-animation,
    .floating-shape {
        display: none;
    }
    
    .login-container {
        background: white;
    }
    
    .info-section {
        background: #f8f9fa;
        color: #333;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}