/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 100vh;
}

canvas {
    position: fixed; /* Make sure it stays in the background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind other content */
}

/* Container for centering */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Space for the logo */
}

/* Logo styles */
.logo-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 125px;
    height: 100px;
    z-index: 3;
    position: relative;
}
/* Form container */
.form-container {
    position: relative;
    width: 100%;
    max-width: 30rem;
    height: auto;
}

/* Divider */
.divider {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, transparent, #38bdf8, transparent);
    margin-bottom: 1rem;
}

/* Card styles */
.card {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 0 0 20px rgba(100, 100, 100, 0.1);
    padding: 1.5rem;
}

.card-content {
    padding-bottom: 1.5rem;
}

.title {
    font-size: 1.25rem;
    font-weight: 600;
}

.subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Form group styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    top: 22px;
    left: 10px;
    position: relative;
}

.form-field {
    position: relative;
}

.input-field {
    width: 95%;
    height: 40px;
    border: 1px solid #cccccc48; 
    background: transparent;
    padding: 0.5rem;
    padding-top: 1rem;
    color: #ccc;
    border-radius: 0.25rem;
    transition: border 0.3s ease, color 0.3s ease; 
    appearance: none;
}

/* Para WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.error {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(207, 23, 23);
    color: white;
    height: 40px;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    animation: quitar_mensaje 4s ease forwards;
    z-index: 1  0;
}

@keyframes quitar_mensaje {
    0%{
        opacity: 1;
    }
    95%{
        opacity: 0;
    }
    100%{
        display: none;
        opacity: 0;
    }
}

.input-field:focus {
    color: #fff;
    border: 1px solid #fff;
    outline: none; 
    box-shadow: 0 0 5px #38bff8de; 
}


.icon-check {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a7f3d0;
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 0.5rem;
}

.checkbox-text {
    font-size: 0.75rem;
}

/* Forgot password link */
.forgot-password {
    font-size: 0.75rem;
    color: #ccc;
    text-decoration: underline;
    margin-top: 10px;
}

/* Form actions styles */
.form-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
}

.form-options{
    display: flex;
    justify-content: space-between;
    text-decoration: none;
}

/* Register link styles */
.register-link {
    font-size: 0.875rem;
    color: #ffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: #1f1f1f;
    transition: background-color 0.3s, color 0.3s, border 0.1s ease, transform 0.2s ease-in-out;
}

.register-link:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.01);
    border: .7px solid white;
}

/* Login button with hover and focus effects */
.login-button {
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border 0.1s ease, transform 0.2s ease-in-out;
}

.login-button:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
    border: .7px solid white;
}

.login-button:focus {
    outline: 2px dashed #38bdf8;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .form-container {
        padding: 0 1rem;
    }
}

.error {
	z-index: 100;
	position: absolute;
    top: 20px;
	display: flex;
	justify-content: center;
    align-items: center;
    left: 50%; 
 	transform: translateX(-50%); 
    background-color: rgb(207, 23, 23);
    color: white;
    height: 60px;
    border-radius: 10px;
    padding: 20px;
    font-weight: bold;
    animation: quitar_mensaje 4s ease forwards;
}

.acierto {
	z-index: 100;
	position: absolute;
    top: 20px;
	display: flex;
	justify-content: center;
    align-items: center;
    left: 50%; 
 	transform: translateX(-50%); 
    background-color: rgb(37, 116, 40);
    color: white;
    height: 60px;
    border-radius: 10px;
    padding: 20px 20px;
    font-weight: bold;
    animation: quitar_mensaje 4s ease forwards;
}

@media (max-width: 768px) {
    .card{
        width: 80%;
    }

    .form-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
    }
}