/* =========================================================
   WORKSPACE AUTH MODERN DESIGN - FRIENDLY GREEN 2026
   Shared stylesheet for Login, Password Recovery, etc.
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f4fbf7; /* Fondo general verde muy claro */
    overflow-x: hidden;
    color: #334155;
}

/* --- Split Layout Container --- */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Left Side: Welcome/Visual Panel --- */
.visual-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 50%, #6ee7b7 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px;
}

.visual-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.visual-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(5, 150, 105, 0.1) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #064e3b;
}

.visual-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.visual-content p {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.85;
    max-width: 380px;
    margin: 0 auto;
}

.visual-icon {
    font-size: 80px;
    color: #059669;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 15px rgba(5, 150, 105, 0.2));
    animation: authFloat 6s ease-in-out infinite;
}

@keyframes authFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Right Side: Form Panel --- */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.form-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 15px;
}

/* Input Groups */
.input-wrapper {
    margin-bottom: 24px;
}

.input-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    margin-left: 2px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.3s;
    z-index: 10;
}

.input-box input {
    width: 100%;
    height: 54px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 20px 0 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #334155;
    transition: all 0.3s ease;
}

.input-box input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.input-box input:focus {
    outline: none;
    border-color: #34d399;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

.input-box input:focus + .input-icon,
.input-box input:focus ~ .input-icon {
    color: #059669;
}

/* Shared Modern Buttons */
.auth-btn {
    width: 100%;
    height: 54px;
    background: #059669;
    color: #ffffff !important;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    margin-top: 10px;
}

.auth-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Secondary Links */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #059669 !important;
    text-decoration: underline;
}

/* ASP.NET Labels for messages */
.lbl-feedback {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

.lbl-feedback:not(:empty) {
    background: #fef2f2;
    color: #ef4444; 
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

/* Success variation for feedback */
.lbl-feedback-success:not(:empty) {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

@media (max-width: 900px) {
    .visual-panel { display: none; }
    .form-panel { padding: 40px 20px; }
    .form-container {
        max-width: 100%;
        padding: 30px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    }
    body { background-color: #f4fbf7; }
}

.hidden-links {
    opacity: 0.01;
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 10px;
    z-index: -10;
}

/* Aviso temporal en el formulario de login (ver comentario "AVISO TEMPORAL" en Login.aspx) */
.auth-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: left;
}

.auth-notice i {
    color: #2563eb;
    font-size: 18px;
    margin-top: 2px;
}

.auth-notice strong {
    display: block;
    color: #1e3a8a;
    font-size: 14px;
    margin-bottom: 2px;
}

.auth-notice span {
    color: #1e40af;
    font-size: 13px;
    line-height: 1.4;
}
