﻿/* ============================================
   JK SAÃšDE â€” Login Page Styles
   ============================================ */

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

body {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/bg-login.png');
    background-color: #0d2137;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
}

.login-container {
    width: 100%;
    max-width: 395px;
    background: rgba(10, 20, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c9942e;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(40, 55, 80, 0.7);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: #c9942e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 148, 46, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #8899aa;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(100, 116, 139, 0.2);
}

.checkbox-label input:checked + .checkbox-custom {
    background: #c9942e;
    border-color: #c9942e;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.forgot-link {
    color: #c9942e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #d4a43e;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c6992e 0%, #b8860b 50%, #a67c24 100%);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #d4a43e 0%, #c9942e 50%, #b8860b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.35);
}

.btn-login.loading {
    opacity: 0.7;
    cursor: wait;
}

.message-box {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.success-message {
    background: rgba(40, 167, 69, 0.15);
    color: #4cd964;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.footer-version {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #8899aa;
    font-size: 0.8rem;
    z-index: 1;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
}




