﻿:root {
    --segcon: #690F38;
    --segcon2: rgb(121,19,85);
    --segconDark: rgb(56, 13, 30);
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --bg1: #f7f8fb;
    --bg2: #eef1f6;
}

.segcon-auth-bg {
    margin-bottom: 0 !important;
    min-height: 100vh;
    background: radial-gradient(900px 450px at 10% 10%, rgba(105,15,56,.10), transparent 55%), linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(1040px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .14);
    border: 1px solid rgba(15,23,42,.06);
}

.auth-left {
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, rgba(105,15,56,.98) 0%, rgba(121,19,85,.98) 55%, rgba(56,13,30,.98) 100%);
    position: relative;
}

.auth-right {
    padding: 38px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 18px;
}

/* ===== left head text (lo que te gustó) ===== */
.auth-left-head {
    margin-bottom: 12px;
}

.auth-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .5px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    margin-bottom: 14px;
}

.auth-title-sc {
    margin: 0 0 10px 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
}

.auth-desc-sc {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: .92;
}

.auth-subdesc-sc {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

.auth-left-list {
    margin: 14px 0 0 0;
    padding-left: 18px;
    opacity: .95;
}

    .auth-left-list li {
        margin: 8px 0;
    }

.link-muted {
    color: #334155;
    text-decoration: none;
}

    .link-muted:hover {
        text-decoration: underline;
    }

/* Botón institucional */
.btn-segcon {
    background-image: linear-gradient(to bottom, var(--segcon) 0, var(--segcon2) 100%);
    border: 1px solid var(--segcon);
    color: #fff;
    font-weight: 700;
}

    .btn-segcon:hover,
    .btn-segcon:focus {
        background-image: none;
        background-color: var(--segconDark);
        border-color: var(--segconDark);
        color: #fff;
    }

/* Inputs */
.form-control:focus {
    border-color: rgba(105,15,56,.35);
    box-shadow: 0 0 0 .2rem rgba(105,15,56,.15);
}

/* Responsive */
@media (max-width: 920px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-left {
        padding: 28px;
    }

    .auth-right {
        padding: 28px;
    }
}
/* ===== Password toggle (ojo/mono) ===== */
.pwd-wrap {
    position: relative;
}

    .pwd-wrap .form-control {
        padding-right: 58px; /* espacio para el botón */
    }

.pwd-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

    .pwd-toggle:hover {
        background: #f8fafc;
    }

.pwd-icon {
    font-size: 16px;
    line-height: 1;
}
