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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #35467D, #2A3B5C);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* =========================================================
   CONTENEDOR
========================================================= */

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   TARJETA
========================================================= */

.login-card {
    display: flex;
    width: 760px;
    min-height: 460px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: cardAppear 0.45s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LADO IZQUIERDO
========================================================= */

.left {
    width: 40%;
    background: linear-gradient(135deg, #35467D, #2A3B5C);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px;
}

.logo-container {
    width: 105px;
    height: 105px;
    background: rgba(255, 255, 255, 0.95);
    padding: 18px;
    border-radius: 50%;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.logo-container img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.left h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.divider {
    width: 55px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    margin: 5px 0 15px;
}

.left p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 220px;
}

/* =========================================================
   LADO DERECHO
========================================================= */

.right {
    width: 60%;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container {
    width: 100%;
    animation: formAppear 0.3s ease;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================
   ENCABEZADO
========================================================= */

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.form-header h3 {
    color: #273653;
    font-size: 23px;
    margin-bottom: 5px;
}

.form-header p {
    color: #777;
    font-size: 13px;
}

.step-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #35467D;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
}

/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.input-group small {
    display: block;
    margin-top: 6px;
    color: #8a8a8a;
    font-size: 11px;
}

/* =========================================================
   INPUTS
========================================================= */

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d5d8df;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: #35467D;
    box-shadow: 0 0 0 3px rgba(53, 70, 125, 0.12);
}

.input-group input::placeholder {
    color: #a0a0a0;
}

/* =========================================================
   PASSWORD
========================================================= */
.white{
    color: white;
}
.password-wrapper{
    position:relative;
    display:flex;
    align-items:center;
}

.password-wrapper input{
    padding-right:38px !important;
}


.toggle-password{
    position:absolute;
    right:10px;
    cursor:pointer;
    color:#9ca3af;
}
.form-row{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}
.crud-form-group{
margin-bottom:15px;
}

.crud-form-group label{
display:block;
margin-bottom:6px;
font-weight:600;
color:var(--text);
font-size:14px;
}

/* =========================================================
   OPCIONES
========================================================= */

.options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #35467D;
}

/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #35467D, #2A3B5C);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 7px 18px rgba(42, 59, 92, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   ESCUELA SELECCIONADA
========================================================= */

.school-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f6fb;
    border: 1px solid #e2e6f0;
    border-radius: 9px;
    padding: 12px;
    margin-bottom: 24px;
}

.school-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #35467D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.school-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.school-info span {
    font-size: 10px;
    color: #888;
    margin-bottom: 3px;
}

.school-info strong {
    font-size: 14px;
    color: #293650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   CAMBIAR ESCUELA
========================================================= */

.btn-change-school {
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #35467D;
    font-size: 12px;
    cursor: pointer;
}

.btn-change-school:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .login-card {
        flex-direction: column;
        width: 100%;
        max-width: 430px;
        min-height: auto;
        border-radius: 14px;
    }

    .left {
        width: 100%;
        padding: 28px 20px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
        padding: 13px;
        margin-bottom: 15px;
    }

    .logo-container img {
        width: 55px;
        height: 55px;
    }

    .left h2 {
        font-size: 20px;
    }

    .left p {
        font-size: 13px;
    }

    .right {
        width: 100%;
        padding: 30px 22px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 10px;
    }

    .left {
        padding: 22px 15px;
    }

    .right {
        padding: 25px 18px;
    }

    .form-header h3 {
        font-size: 20px;
    }
}
/* =========================================================
   CAMBIAR ORGANIZACIÓN
========================================================= */

.btn-change-school {
    width: 100%;
    height: 40px;
    margin-top: 12px;
    padding: 0 15px;
    border: 1px solid #d5d8df;
    border-radius: 7px;
    background: #fff;
    color: #35467D;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-change-school i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-change-school:hover {
    background: #f4f6fb;
    border-color: #35467D;
    color: #2A3B5C;
    box-shadow: 0 4px 10px rgba(53, 70, 125, 0.10);
}

.btn-change-school:hover i {
    transform: translateX(-3px);
}

.btn-change-school:active {
    transform: translateY(1px);
}
