/* ========================================
   MODERN LOGIN PAGE STYLES
   LConnect - Agenda Saúde
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a252f 0%, #253142 25%, #34495e 50%, #253142 75%, #1a252f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Container Principal */
.login-container {
    width: 100%;
    max-width: 28rem;
    margin: 2rem auto;
}

/* Header com Ícone */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-container {
    width: fit-content;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.header-logo {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.brand-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 0;
}

/* Card de Login */
.login-card {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    color: #2d3748;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    font-size: 0.875rem;
}

.modern-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #fff;
}

.modern-input:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.1);
}

.modern-input::placeholder {
    color: #cbd5e0;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.toggle-password:hover {
    color: #4a5568;
}

/* Validation Messages */
.text-danger {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
}

.validation-summary {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.validation-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary li {
    color: #e53e3e;
    font-size: 0.875rem;
}

/* Remember Me & Forgot Password */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #4a5568;
}

.forgot-password {
    font-size: 0.875rem;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Login Button - Gradiente Escuro */
.btn-login {
    width: 100%;
    height: 2.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Responsivo */
@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        margin: 1rem auto;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .header-logo {
        width: 100px;
    }

    .login-card {
        padding: 1.25rem;
    }
}
