/* ========================================
   LOGIN PAGE - Professional Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

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: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;     
}

/* ========================================
   BACKGROUND DECORATION
   ======================================== */

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden; /* ✅ Adăugat */
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

/* ✅ Ajustări pentru mobile */
@media (max-width: 480px) {
    .bg-circle-1 {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -80px;
    }

    .bg-circle-2 {
        width: 150px;
        height: 150px;
        bottom: -60px;
        left: -60px;
    }

    .bg-circle-3 {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideUp 0.5s ease-out;
    position: relative;
    z-index: 111;   
}

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

/* ========================================
   HEADER
   ======================================== */

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

.login-logo {
    display: inline-flex;
    margin-bottom: 16px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.login-logo svg {
    filter: drop-shadow(0 4px 12px rgba(85, 110, 230, 0.3));
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.login-header p {
    font-size: 15px;
    color: #718096;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

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

/* ========================================
   ALERT MESSAGE
   ======================================== */

.login-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #fc8181;
    border-radius: 12px;
    color: #c53030;
    font-size: 14px;
    margin-bottom: 24px;
    animation: shake 0.5s ease-out;
}

.login-alert svg {
    flex-shrink: 0;
    color: #e53e3e;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================
   FORM
   ======================================== */

.login-form {
    animation: fadeIn 0.8s ease-out 0.5s both;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    transition: color 0.2s;
}

.fw-input-modern {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    font-size: 1rem;
    color: #2d3748;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    outline: none;
}

.fw-input-modern::placeholder {
    color: #a0aec0;
}

.fw-input-modern:focus {
    background: #ffffff;
    border-color: #556ee6;
    box-shadow: 0 0 0 4px rgba(85, 110, 230, 0.1);
}

.fw-input-modern:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #556ee6;
}

/* ========================================
   BUTTON
   ======================================== */

.btn-login {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #556ee6 0%, #3845a8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85, 110, 230, 0.4);
}

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

.btn-login:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-login .btn-icon {
    flex-shrink: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    font-size: 13px;
    color: #a0aec0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        border-radius: 20px;
        position: relative;
        z-index: 111;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 1rem;
    }

    .fw-input-modern {
        height: 48px;
        font-size: 1rem;
    }

    .btn-login {
        height: 48px;
        font-size: 1rem;
    }

    .bg-circle-1 {
        width: 250px;
        height: 250px;
    }

    .bg-circle-2 {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Poți adăuga suport dark mode aici dacă dorești */
}