/* Login Moderna - Design System Clínica Div */

.login-moderna-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-moderna-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, rgba(196, 242, 10, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    background: linear-gradient(135deg, #1a1d29 0%, #2d3142 100%);
    padding: 40px 30px;
    text-align: center;
}

.login-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #9ca3af;
}

.login-body {
    padding: 40px 30px;
}

.login-form-group {
    margin-bottom: 24px;
}

.login-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.login-input:focus {
    outline: none;
    border-color: #C4F20A;
    background: white;
    box-shadow: 0 0 0 3px rgba(196, 242, 10, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #111827;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.login-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(to right, #C4F20A, #A8D108);
    color: #111827;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 242, 10, 0.3);
}

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

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.login-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.login-message.success {
    background: #d1fae5;
    color: #059669;
    border: 2px solid #a7f3d0;
}

.login-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.forgot-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.forgot-link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #C4F20A;
}

.signup-section {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.signup-section p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.signup-link {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.signup-link:hover {
    color: #C4F20A;
    transform: translateX(4px);
}

/* Animação de loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Input focus animation */
.login-form-group.focused .login-label {
    color: #C4F20A;
}

@media (max-width: 768px) {
    .login-moderna-wrapper {
        padding: 15px;
    }
    
    .login-container {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-body {
        padding: 30px 25px;
    }
    
    .login-form-group {
        margin-bottom: 20px;
    }
}