/* ============================================================
   craft — Login (estilo industrial, alineado con web pública)
   ============================================================ */

.login-body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: #0d0d0d;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
}

.login-body main { width: 100%; display: flex; min-height: 100vh; }

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .login-wrapper { grid-template-columns: 1.1fr 1fr; }
}

/* Panel izquierdo (hero) ---------------------------------------- */
.login-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(13,13,13,.85) 0%, rgba(26,26,26,.85) 100%),
        radial-gradient(circle at 20% 30%, rgba(255,107,0,.18), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255,107,0,.1), transparent 60%),
        #0d0d0d;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    overflow: hidden;
}
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@media (min-width: 992px) {
    .login-hero { display: flex; }
}

.hero-content {
    position: relative;
    max-width: 480px;
    z-index: 2;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}

.login-hero h2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 24px;
    color: #fff;
}

.login-hero h2 .accent { color: #ff6b00; }

.login-hero p {
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
    margin: 0 0 32px;
    font-size: 1rem;
}

.login-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.login-hero-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.login-hero-feature i {
    color: #ff6b00;
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 2px;
}
.login-hero-feature strong {
    display: block;
    font-size: .92rem;
    margin-bottom: 2px;
    color: #fff;
}
.login-hero-feature span {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
}

/* Panel derecho (form) ------------------------------------------ */
.login-panel {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
}

@media (min-width: 768px) {
    .login-panel { padding: 64px 48px; }
}

.login-back {
    position: absolute;
    top: 24px; left: 24px;
    font-size: .85rem;
    font-weight: 600;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s ease;
}
.login-back:hover { color: #ff6b00; }

.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.login-box-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}
.login-box-logo img { height: 50px; }

@media (max-width: 991.98px) {
    .login-box-logo { display: block; }
}

.login-box h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 6px;
    color: #0d0d0d;
}
.login-box .lead-muted {
    font-size: .9rem;
    color: #757575;
    margin: 0 0 28px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 1.5px solid #e6e6e6;
    border-radius: 8px;
    transition: border-color .15s ease, background .15s ease;
}
.input-wrap:focus-within {
    border-color: #ff6b00;
    background: #fff;
}
.input-wrap > i {
    padding: 0 14px;
    color: #757575;
    font-size: 1.1rem;
}
.input-wrap input,
.input-wrap input.form-control {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 14px 12px 0 !important;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    border-radius: 0 !important;
}
.input-wrap input::placeholder { color: #aaa; }
.input-wrap input:focus { background: transparent !important; box-shadow: none !important; }
.toggle-pass {
    background: transparent;
    border: none;
    padding: 0 14px;
    color: #757575;
    cursor: pointer;
    font-size: 1.1rem;
}
.toggle-pass:hover { color: #ff6b00; }

.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
}
.login-form .form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #ff6b00;
}
.login-form .form-check label {
    font-size: .85rem;
    color: #4a4a4a;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    background: #0d0d0d;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-login:hover {
    background: #ff6b00;
    transform: translateY(-1px);
}
.btn-login:active { transform: translateY(0); }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #aaa;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.alert-login {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
    margin-bottom: 16px;
}

.login-credits {
    text-align: center;
    margin-top: 32px;
    font-size: .78rem;
    color: #757575;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-credits img { height: 18px; vertical-align: middle; }
.login-credits-text { letter-spacing: .04em; }
