@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background: radial-gradient(circle at center, #273a71 60%, #2d5573 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 1.0);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    background-color: transparent;
}

.logo-icon {
    width: 200px;
    /*height: 40px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #273a71 !important;
    letter-spacing: 0.5px;
    line-height: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #b0c4de;
    border-radius: 6px;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0088cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    cursor: pointer;
}

.forgot-password {
    color: #0077aa;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #273a71 !important;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #004d66;
}

.error-message {
    color: #d93025;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 15px;
}

.footer-text {
    color: azure;
    font-size: 12px;
    text-align: center;
}

.login-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a3346;
    text-align: center;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 14px;
    color: #556b7d;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 22px;
}

.login-card button[type="submit"],
.login-card input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #006688;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.login-card button[type="submit"]:hover,
.login-card input[type="submit"]:hover {
    /*background-color: #004d66;*/
}

.login-card button[type="submit"]:hover,
.login-card input[type="submit"]:hover,
.btn-primary:hover {
    background-color: #004d66;
}

.error-alert {
    background-color: #fde8e8;
    border: 1px solid #f8b4b4;
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
}

.otp-input {
    letter-spacing: 4px;
    font-weight: 700;
    text-align: center;
    font-size: 18px;
}

.auth-footer-links {
    text-align: center;
    margin-top: 20px;
}

.django-form p {
    text-align: left;
    margin-bottom: 18px;
}

.django-form p label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.django-form p input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #b0c4de;
    border-radius: 6px;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.django-form p input:focus {
    border-color: #0088cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.django-form .helptext {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.django-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    color: #d93025;
    font-size: 13px;
}

/* eye button*/
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

/* Botón flotante del ojito */
.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #7f93a2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #273a71;
}