/* =========================
   VARIABLES
========================= */

:root {
    --primary: #0B63F6;
    --primary-dark: #084CC2;
    --background: #F4F7FB;
    --white: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 10px 35px rgba(0,0,0,0.08);
    --radius: 18px;
    --transition: all .25s ease;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
}

/* =========================
   LOGIN PAGE
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow);
}

/* =========================
   LEFT PANEL
========================= */

.login-left {
    width: 45%;
    background: linear-gradient(180deg, #0B63F6 0%, #062B63 100%);
    color: white;
    padding: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 22px;
}

.left-content p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* =========================
   RIGHT PANEL
========================= */

.login-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #FCFDFF;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

.login-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    transition: var(--transition);
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.12);
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.forgot-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* =========================
   BUTTON
========================= */

.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-login:hover {
        background: var(--primary-dark);
    }

/* =========================
   FOOTER
========================= */

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px) {

    .login-wrapper {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        padding: 50px 35px;
    }

    .login-right {
        padding: 40px 25px;
    }

    .left-content h1 {
        font-size: 34px;
    }
}

/* =========================
   LAYOUT
========================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #F4F7FB;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0B63F6 0%, #062B63 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}


.sidebar-menu {
    display: flex;
    flex-direction: column;
}

    .sidebar-menu a {
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        padding: 14px 16px;
        border-radius: 12px;
        transition: 0.2s;
        font-weight: 500;
        margin-bottom: 5px;
    }

        .sidebar-menu a:hover {
            background: rgba(255,255,255,0.1);
        }

        .sidebar-menu a.active {
            background: rgba(255,255,255,0.15);
            color: white;
        }

/* =========================
   MAIN
========================= */

.main-wrapper {
    flex: 1;
    padding: 35px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.page-title {
    font-size: 38px;
    margin-bottom: 10px;
    color: #1F2937;
}

.page-subtitle {
    color: #6B7280;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0B63F6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =========================
   CARD
========================= */

.card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================
   LOGO
========================= */

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 14px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.brand-logo {
    width: 150px;
    height: auto;
    display: block;
}

.custom-brand-size .brand-logo {
    width: 340px;
}

/* =========================
   REGISTER LINK
========================= */

.login-register-link {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

    .login-register-link a {
        color: #0B63F6;
        text-decoration: none;
        font-weight: 600;
        margin-left: 5px;
    }

        .login-register-link a:hover {
            text-decoration: underline;
        }

/* =========================
   ALERTAS
========================= */

.alert-error {
    background: #FDECEC;
    color: #B42318;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

    .alert-error ul {
        margin: 0;
        padding-left: 18px;
        margin-left: 4px;
    }

    .alert-error li {
        margin-bottom: 4px;
    }

.alert-success {
    background: #EAFBF1;
    color: #15803D;
    border: 1px solid #BBF7D0;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* =========================
   LOGIN TOGGLE
========================= */

.login-toggle {
    display: flex;
    background: #EEF2FF;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s ease;
    color: #4B5563;
}

    .toggle-btn.active {
        background: white;
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }