﻿html, body {
    height: 100%;
    margin: auto;
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 500px; /* Limits width on Laptop */
    margin: 0 auto; /* Centers the whole container */
    padding: 20px;
    display: flex;
    flex-direction: column; /* Forces one below the other */
    align-items: center; /* Centers items horizontally */
    box-sizing: border-box;
}

/* Space between each div */
.row-item {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

/* Logo and Images */
.main-logo {
    max-width: 100%;
    height: auto;
    width: 500px; /* Default desktop width */
}

.key-icon {
    width: 80px;
    height: auto;
}

/* Textboxes styling */
.input-field {
    width: 100%; /* Makes textbox fill the container */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important: ensures padding doesn't break width */
    /* Font Styles */
    font-size: 18px; /* Makes text bigger (standard is usually 14px-16px) */
    font-weight: bold; /* Makes text bold */
    color: #333; /* Dark gray for better readability */
    font-family: Arial, sans-serif;
}

/* Buttons Styling */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    /* You can add a background color to the group area here if you like */
    padding: 10px 0;
}

.btn {
    padding: 12px 20px;
    cursor: pointer;
    flex: 1;
    border: none;
    border-radius: 5px;
    /* Font Styling */
    font-weight: bold; /* Makes text BOLD */
    font-size: 16px;
    text-transform: uppercase; /* Optional: makes it look more like a professional button */
    transition: background 0.3s ease; /* Smooth color change on hover */
}

/* Login Button Color (Blue) */
.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3; /* Darker blue when hovering */
    }

/* Cancel Button Color (Gray) */
.btn-secondary {
    background-color: #F54927;
    color: white;
}

    .btn-secondary:hover {
        background-color: #9C2007;
    }
/* Este es el contenedor del input + el ojo */
.password-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* O el ancho que prefieras */
    margin: 0 auto;
}

    /* Ajustamos el padding derecho para que el texto no tape al ojo */
    .password-container .input-field {
        width: 100%;
        padding-right: 45px;
        box-sizing: border-box;
        font-size: 18px;
        font-weight: bold;
    }

/* Estilo del ojo */
.toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 30px; /* Tamaño del icono */
    height: 20px; /* Tamaño del icono */
    opacity: 0.6; /* Lo hace un poco grisáceo para que no distraiga tanto */
}

    .toggle-icon:hover {
        opacity: 1; /* Se ilumina al pasar el mouse */
    }

/* MOBILE RESPONSIVE FIX */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .main-logo {
        width: 90%; /* Shrinks for mobile */
    }

    .button-group {
        flex-direction: column; /* On phones, buttons stack too */
    }
}
