* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1f5;
    color: #1a1a1a;
    min-height: 100vh;
}

.header {
    height: 62px;
    background: #1a1a1a;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo span { color: #0088ff; }

.header-titulo {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #444;
    color: #999;
    font-size: 14px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 62px);
    padding: 30px 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

.login-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.login-card > p {
    color: #8a8f96;
    font-size: 14px;
    margin-bottom: 28px;
}

.tabs-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.tab-login {
    border: none;
    background: transparent;
    height: 40px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: .15s;
}

.tab-login.activo {
    background: #0088ff;
    color: white;
    box-shadow: 0 3px 0 #0066cc;
}

.campo { margin-bottom: 18px; }

.campo > label {
    display: block;
    font-size: 12px;
    color: #555;
    font-weight: bold;
    margin-bottom: 7px;
}

.campo input {
    width: 100%;
    height: 46px;
    border: 1px solid #d8dce1;
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
    font-size: 15px;
}

.campo input:focus {
    border-color: #0088ff;
    box-shadow: 0 0 0 3px rgba(0,136,255,.12);
}

.campo-password {
    position: relative;
}

.campo-password input {
    padding-right: 48px;
}

.btn-ojo {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.btn-ojo:hover {
    background: #f0f2f4;
}

.btn-ojo i {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.btn-principal {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 11px;
    background: #0088ff;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: .15s;
    box-shadow: 0 4px 0 #0066cc, 0 6px 16px rgba(0,136,255,.22);
}

.btn-principal:hover {
    background: #0074dc;
    transform: translateY(-1px);
}

.btn-principal:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0066cc;
}

.btn-principal:disabled {
    background: #a0c4e8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.mensaje {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}

.mensaje.error {
    display: block;
    background: #fff0f0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.mensaje.ok {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.oculto { display: none !important; }

@media (max-width: 500px) {
    .header { padding: 0 18px; }
    .header-titulo { display: none; }
    .login-card { padding: 28px 22px; }
}