* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-box h1 {
    text-align: center;
    color: #0d47a1;
    margin-bottom: 5px;
}

.subtitulo {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

button {
    width: 100%;
    padding: 13px;
    background: #facc15;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #eab308;
    transform: translateY(-2px);
}

.error {
    background: #ffe5e5;
    color: #d10000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* responsive */
@media(max-width:480px) {

    .login-box {
        padding: 25px;
    }

}

.panel {
    width: 90%;
    max-width: 700px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    text-align: center;
}

.btn-salir {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.btn-salir:hover {
    background: #dc2626;
}

.form-box {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.form-box h1 {
    color: #0d47a1;
    text-align: center;
    margin-bottom: 5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.full {
    grid-column: 1 / 3;
}

select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 15px;
}

textarea {
    resize: none;
}

button {
    margin-top: 20px;
}

.btn-salir {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

@media(max-width:768px) {

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .form-box {
        padding: 25px;
    }

}

.titulo-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.titulo-logo h1 {
    margin: 0;
    color: #0d47a1;
    font-size: 48px;
    font-weight: bold;
}

.titulo-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.success,
.error {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: bold;
    transition: all .5s ease;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ocultar {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}