/* equipos/css/auth.css */

.auth-main {
    padding-top: 80px;
    padding-bottom: 60px;
    background-color: black;
    color: white;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-section {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(145deg, #1a0303, #2e0808);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 68, 0, 0.4);
    color: #e0e0e0;
    text-align: center;
}

.auth-section h1 {
    font-size: 2.5em;
    color: #ffb300;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 179, 0, 0.7);
}

.auth-section .messages {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.auth-section .messages li {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: white;
}

.auth-section .messages .success {
    background-color: #00ff8c;
    color: #0d0d0d;
}

.auth-section .messages .error {
    background-color: #d62828;
}

.auth-section .messages .info {
    background-color: #00ffff;
    color: #0d0d0d;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.auth-form p { /* Django form default renders fields in <p> tags */
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    font-size: 1em;
    color: #ff4d00;
    margin-bottom: 5px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ff4d00;
    background-color: #0d0d0d;
    color: white;
    font-size: 1.1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #ffb300;
    box-shadow: 0 0 8px rgba(255, 179, 0, 0.5);
}

.auth-form .help-text {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 5px;
}

.auth-form .errorlist {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    color: #d62828;
    font-size: 0.9em;
}

.btn-submit-auth {
    background: linear-gradient(90deg, #00ff8c, #00b36e);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.6);
    transition: all 0.3s ease;
}

.btn-submit-auth:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 140, 0.8);
    background: linear-gradient(90deg, #00b36e, #00ff8c);
}

.auth-link {
    margin-top: 25px;
    font-size: 1em;
    color: #ccc;
}

.auth-link a {
    color: #ff4d00;
    text-decoration: none;
    font-weight: bold;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-section {
        padding: 30px 20px;
    }
    .auth-section h1 {
        font-size: 2em;
    }
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 10px;
        font-size: 1em;
    }
    .btn-submit-auth {
        padding: 12px 25px;
        font-size: 1em;
    }
}