/* Beautiful Login Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    pointer-events: auto; /* Ensure container is clickable */
    margin: 40px auto;
    flex-shrink: 0;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
}

.login-form {
    margin-top: 30px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label .icon {
    margin-right: 8px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
    pointer-events: auto;
    cursor: text;
}

.form-control:focus {
    outline: none;
    border-color: #2d8659;
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.1);
}

.form-control:disabled,
.form-control[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-control::placeholder {
    color: #adb5bd;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2d8659 0%, #4fa372 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-login:hover .btn-arrow {
    transform: translateX(5px);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link {
    color: #2d8659;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link:hover {
    color: #1e5d3f;
    text-decoration: underline;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: block;
}

.alert-danger:empty {
    display: none;
}

.text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Background Shapes */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none; /* Allow clicks to pass through */
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.bg-shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-dropdown {
    padding: 8px 35px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    border-color: #2d8659;
    box-shadow: 0 2px 8px rgba(45, 134, 89, 0.1);
}

.language-dropdown:focus {
    outline: none;
    border-color: #2d8659;
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        margin: 20px auto;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-logo {
        max-width: 150px;
    }

    .language-selector {
        top: 15px;
        right: 15px;
    }

    .language-dropdown {
        padding: 6px 30px 6px 10px;
        font-size: 0.85rem;
    }
}

