/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* VARIABLES */
:root {
    --primary: #0a0f2c;
    --secondary: #1f3cff;
    --light: #f5f6fa;
    --dark: #111;
    --error: #e74c3c;
}

/* LOGIN */
body {
    background: var(--light);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* LADO VISUAL */
.login-visual {
    flex: 1;
    background: url('../img/login-bg.jpg') center/cover no-repeat;
    position: relative;
}

.login-visual .overlay {
    background: rgba(10, 15, 44, 0.8);
    color: #fff;
    height: 100%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-visual h1 {
    font-size: 42px;
    line-height: 1.2;
}

.login-visual span {
    color: var(--secondary);
}

.login-visual p {
    margin-top: 15px;
    font-size: 16px;
}

/* FORM */
.login-form {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-card h2 {
    margin-bottom: 10px;
}

.form-card p {
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    font-size: 14px;
    color: #777;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    color: var(--secondary);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: 0.9;
}

.error {
    background: var(--error);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.extra-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.extra-links a {
    font-size: 13px;
    text-decoration: none;
    color: var(--secondary);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-visual {
        display: none;
    }
}
/* VIDEO BACKGROUND */
.login-visual {
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.login-visual .overlay {
    position: relative;
    z-index: 2;
    background: rgba(10, 15, 44, 0.75);
}

/* TOPBAR CLIENTE */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 22px;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.logout-btn {
    background: var(--error);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.logout-btn:hover {
    opacity: 0.85;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ICONOS CON BADGE */
.icon-badge {
    position: relative;
}

.icon-badge .icon {
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
}

.icon-badge .badge-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* USER INFO */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.logout-btn {
    background: var(--error);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.logout-btn:hover {
    opacity: 0.85;
}
