/* DOZ Apps Login - doz-tarom.ro */
/* Design TAROM official style - conform capturii site oficial */

:root {
    --bg-primary: linear-gradient(135deg, #003d82 0%, #004b8d 50%, #002b5c 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.45);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(255, 255, 255, 0.10);
    --input-focus: #d4a017;          /* TAROM gold */
    --btn-primary: linear-gradient(135deg, #004b8d, #003d82);
    --error-bg: rgba(200, 16, 46, 0.20);    /* TAROM red */
    --error-border: rgba(200, 16, 46, 0.45);
    
    /* TAROM oficial */
    --tarom-blue-primary: #004b8d;
    --tarom-blue-dark: #003d82;
    --tarom-gold: #d4a017;
    --tarom-red: #c8102e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 64px var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tarom-gold), transparent);
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.4);
}

.logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo h1 {
    font-size: clamp(1.9rem, 5vw, 2.3rem);
    background: linear-gradient(135deg, var(--tarom-gold), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 26px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

input:focus {
    outline: none;
    border-color: var(--tarom-gold);
    box-shadow: 
        0 0 0 3px rgba(212, 160, 23, 0.15),
        0 8px 24px rgba(212, 160, 23, 0.2);
    background: rgba(255, 255, 255, 0.14);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #fee2e2;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 26px;
    font-size: 0.92rem;
    font-weight: 500;
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-login {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--tarom-blue-primary), var(--tarom-blue-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 75, 141, 0.45);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 75, 141, 0.65);
}

.btn-login:active {
    transform: translateY(0);
}

.links {
    text-align: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
}

.links a {
    color: var(--tarom-gold);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tarom-gold);
    transition: width 0.2s ease;
}

.links a:hover {
    color: #ffe7a3;
    text-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
}

.links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 36px 24px;
        margin: 16px;
        border-radius: 20px;
    }
    
    body {
        padding: 12px;
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    :root {
        --input-bg: rgba(71, 85, 105, 0.42);
    }
}

/* Loading spinner pentru form submit */
.login-container.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-login.loading {
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
