/* LEON | LOGIN INDUSTRIAL PRO v5.0 */

:root {
    --leon-blue: #002D54;
    --leon-dark: #001a33;
    --leon-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-cyan: #00c8ff;
    --accent-blue: #3498db;
}

body {
    background-color: var(--leon-dark);
    background-image: radial-gradient(circle at top, var(--leon-blue) 0%, var(--leon-dark) 100%);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.menu-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

/* --- LOGO & BOOT-UP SEKVENCA --- */
.logo-fade-wrapper {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(-20px);
    animation: industrialBoot 0.8s ease-out forwards;
}

.intro-logo {
    height: 60px;
    filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.2));
}

.sector-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 3px;
    margin-bottom: 25px;
    opacity: 0;
}

/* --- KARTICA (TERMINAL) --- */
.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--leon-border);
    border-radius: 20px;
    padding: 45px 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    opacity: 0;
}

/* Vizuelna ikona: Štit sa pulsiranjem */
.auth-icon-box {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.1);
}

.auth-icon-box i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.5));
}

.icon-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: industrialPulse 2s infinite;
}

@keyframes industrialPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.auth-title { font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; }
.auth-subtitle { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 35px; }

/* --- FORMA & INPUTI --- */
.label-custom {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.form-control-custom {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--leon-border);
    color: white;
    padding: 12px 15px 12px 42px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.form-control-custom:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
    border-left: 4px solid var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
}

.form-control-custom:focus + i {
    color: var(--accent-cyan);
}

/* --- INDUSTRIJSKO DUGME --- */
.btn-industrial-login {
    width: 100%;
    background: linear-gradient(135deg, #003d73 0%, #002D54 100%);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: white;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-industrial-login:hover {
    background: linear-gradient(135deg, #004a8b 0%, #003d73 100%);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-industrial-login i {
    font-size: 0.85rem;
    transition: 0.3s;
    opacity: 0.7;
}

.btn-industrial-login:hover i {
    opacity: 1;
    transform: rotate(-10deg);
    color: var(--accent-cyan);
}

/* --- ERROR & FOOTER --- */
.error-box {
    margin-top: 25px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #ff7675;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: industrialBoot 0.4s ease-out;
}

.footer-meta {
    margin-top: 40px;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    opacity: 0;
}

/* --- ANIMACIJE --- */
@keyframes industrialBoot {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-delay-1 { animation: industrialBoot 0.8s ease-out 0.2s forwards; }
.anim-delay-2 { animation: industrialBoot 0.8s ease-out 0.5s forwards; }
.anim-delay-3 { animation: industrialBoot 0.8s ease-out 0.8s forwards; }