
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c9463 0%, #1e6a48 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><text x="50%" y="50%" font-family="Amiri" font-size="70" text-anchor="middle" dominant-baseline="middle" fill="white">أبو ذر</text></svg>'),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="80" height="80" opacity="0.03"><path fill="white" d="M50 10L60 40H90L65 60L75 90L50 70L25 90L35 60L10 40H40L50 10Z"/></svg>');
    background-size: 200px, 150px;
    z-index: -1;
}

.login-container {
    display: flex;
    width: 1000px;
    height: 550px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    overflow: hidden;
    animation: containerAppear 1s ease-out;
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-panel {
    flex: 1.2;
    background: 
    linear-gradient(135deg, rgba(12, 148, 99, 0.85) 0%, rgba(30, 106, 72, 0.9) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><path fill="white" d="M50 10C70 10 90 25 90 50C90 75 70 90 50 90C30 90 10 75 10 50C10 25 30 10 50 10Z"/></svg>'),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="120" height="120" opacity="0.04"><path fill="white" d="M20,20 L80,20 L80,80 L20,80 Z"/></svg>');
    background-size: cover, 200px, 180px;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path fill="white" d="M30,30 Q50,10 70,30 T100,50 Q80,70 70,90 T50,100 Q20,80 30,30"/></svg>');
    background-size: 300px;
    animation: rotateBackground 60s linear infinite;
    opacity: 0.2;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

.logo h1 {
    font-size: 32px;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Amiri', serif;
}

.app-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-info-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: transform 0.3s;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list i {
    margin-right: 12px;
    font-size: 18px;
    color: #2D8CFF;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.welcome-text {
    text-align: center;
    z-index: 1;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.welcome-text h2 {
    font-size: 26px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-text p {
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.right-panel {
    flex: 1;
    background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.02"><path fill="%231e6a48" d="M10,10 Q30,5 50,10 T90,10 Q95,30 90,50 T90,90 Q70,95 50,90 T10,90 Q5,70 10,50 T10,10 Z"/></svg>'),
    rgba(255, 255, 255, 0.95);
    background-size: 200px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e6a48, #2D8CFF, #1e6a48);
}

.login-form {
    width: 100%;
    animation: formAppear 1.5s ease-out;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form h2 {
    color: #1e6a48;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 15px;
    animation: fadeIn 1s ease-out;
}

.login-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e6a48, #2D8CFF);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    animation: slideInRight 1.2s ease-out;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    border-color: #2D8CFF;
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.2);
    background: white;
    transform: translateY(-2px);
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 45px;
    color: #1e6a48;
    font-size: 18px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e6a48 0%, #2D8CFF 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 8px 16px rgba(30, 106, 72, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.4s ease-out;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(30, 106, 72, 0.4);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(30, 106, 72, 0.3);
}

.additional-links {
    margin-top: 25px;
    text-align: center;
    animation: fadeIn 1.6s ease-out;
}

.additional-links a {
    color: #2D8CFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 500;
    display: inline-block;
    margin: 0 10px;
}

.additional-links a:hover {
    color: #1a75ff;
    text-decoration: underline;
    transform: translateY(-2px);
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
    animation: fadeIn 1.8s ease-out;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 20px;
    }
    
    .left-panel, .right-panel {
        padding: 30px;
    }
}
