/* chefcontrol-sup — login.css */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #0f1923;
    position: relative;
    overflow: hidden;
}

/* Fondo animado con gradiente */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(168,85,247,.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(34,211,238,.08) 0%, transparent 50%);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 44px 40px 36px;
    box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

/* Marca */
.brand {
    text-align: center;
    margin-bottom: 36px;
}
.brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.brand-icon i { font-size: 28px; color: #fff; }
.brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: .5px;
}
.brand p {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Alerta */
.alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-error   { background: rgba(239,68,68,.15);  border:1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.15);  border:1px solid rgba(34,197,94,.3);  color: #86efac; }

/* Form */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 7px;
}
.input-wrap {
    position: relative;
}
.input-wrap i.icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
}
.form-input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    font-size: 14px;
    color: #f1f5f9;
    transition: border-color .25s, background .25s;
    outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: #6366f1;
    background: rgba(99,102,241,.08);
}

/* Botón */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    letter-spacing: .4px;
    transition: opacity .25s, transform .15s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login:hover   { opacity: .9; }
.btn-login:active  { transform: scale(.98); }
.btn-login:disabled { opacity: .55; cursor: not-allowed; }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #475569;
}
