*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: #f4f5f7;
}

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

.panel-brand {
    background: linear-gradient(145deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-content { position: relative; z-index: 2; max-width: 420px; }

.brand-logo {
    width: min(290px, 80vw);
    height: auto;
    display: block;
    margin-bottom: 2.5rem;
}

.brand-text-fallback {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: .08em;
    margin-bottom: 2.5rem;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.brand-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f5a623;
    border-radius: 2px;
    margin-top: .8rem;
}

.brand-desc {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.brand-badges { display: flex; gap: .75rem; flex-wrap: wrap; }

.badge-pill {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    padding: .35rem .85rem;
    border-radius: 99px;
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.brand-decoration {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245,166,35,.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(26,26,46,.8) 0%, transparent 50%);
    pointer-events: none;
}

.panel-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #f4f5f7;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 430px;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5a623;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.login-header h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: .15rem; }
.login-sub { color: #888; font-size: .88rem; }

.alert-msg {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .88rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.btn-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    border: none;
    text-align: left;
    margin-bottom: .75rem;
}

.btn-option:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.btn-colaborador {
    background: #1a1a2e;
    color: #fff;
}

.btn-proveedor {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #1a1a2e;
}
.btn-proveedor:hover { border-color: #f5a623; background: #fffbf0; }

.btn-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.btn-proveedor .btn-option-icon {
    background: #f4f5f7;
    color: #1a1a2e;
}

.btn-option-text { flex: 1; }
.btn-option-title { display: block; font-weight: 700; font-size: .95rem; }
.btn-colaborador .btn-option-title { color: #fff; }

.btn-option-desc { display: block; font-size: .78rem; margin-top: .15rem; opacity: .7; }
.btn-colaborador .btn-option-desc { color: rgba(255,255,255,.75); }

.btn-option-arrow { font-size: .8rem; opacity: .6; }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
    font-size: .82rem;
    margin: .5rem 0 .75rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.form-proveedor { margin-top: .5rem; }
.form-proveedor.hidden { display: none; }

.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-size: .83rem; font-weight: 600; color: #555; margin-bottom: .4rem; }

.input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem .9rem;
    gap: .6rem;
    transition: border-color .15s;
    background: #fff;
}
.input-wrap:focus-within { border-color: #f5a623; }
.input-wrap i { color: #aaa; font-size: .9rem; }
.input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-size: .92rem;
    color: #1a1a2e;
    background: transparent;
}

.btn-submit {
    width: 100%;
    background: #f5a623;
    color: #1a1a2e;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    border-radius: 10px;
    padding: .8rem;
    cursor: pointer;
    transition: background .15s, transform .15s;
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.btn-submit:hover { background: #e8960d; transform: translateY(-1px); }

.login-footer {
    text-align: center;
    font-size: .77rem;
    color: #bbb;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .login-wrap { grid-template-columns: 1fr; }
    .panel-brand { display: none; }
    .panel-login { padding: 1.5rem; }
}
