/* login.css - Premium Glassmorphism Design */

body{
	_background-color: #F6F6F6!important;
}

/* Auth Page Wrapper for Full Height Background */
.auth-page-wrapper {
    width: 100%;
    min-height: calc(100vh - 180px); /* Ajuste aproximado para respetar header y footer */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    padding: 3rem 1rem;
}

.container-login {
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 0;
}

.container-register {
    max-width: 500px;
}

.container-login h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #394C6A 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
	font-family: 'Roboto', system-ui, sans-serif;
}

.container-login .subtitle {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
	font-family: 'Roboto', system-ui, sans-serif;
}

.login-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem 2.2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	font-family: 'Roboto', system-ui, sans-serif;
}

.login-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #394C6A;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary, #3b82f6) 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-footer-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.login-footer-msg {
    color: var(--text-muted, #94a3b8);
    margin-bottom: 1rem;
}

.login-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-link {
    color: var(--primary, #3b82f6);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.auth-link:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.auth-link-primary {
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-link-secondary {
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-link-secondary:hover {
    color: #cbd5e1;
    text-shadow: none;
}

.login-back-link-wrapper {
    text-align: center;
    margin-top: 2.5rem;
}

.login-back-link {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.login-back-link:hover {
    color: #ffffff;
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

/* Registro & Forgot Password Specifics */
.success-msg {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    margin-bottom: 2rem;
}

.success-msg i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.success-msg .btn {
    display: block;
    margin-top: 1.5rem;
    text-decoration: none;
}

.input-status-msg {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    min-height: 1rem;
    display: none;
}

/* Modal Forgot Password */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 10px;
}
.modal-forgot-content {
    background: #0f172a;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-forgot-content .close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.modal-forgot-content .close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.modal-forgot-title {
    margin-bottom: 0.5rem;
}
.modal-forgot-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.modal-forgot-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}
.modal-forgot-input:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
}
.forgot-status-msg {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
    padding: 0.8rem;
    border-radius: 0.8rem;
}
