:root {
    --bg-card: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #6366f1;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #0f172a; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.login-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.card-header-custom {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group {
    position: relative; 
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.form-control, input[type="text"], input[type="email"], input[type="password"] {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 0.7rem 1rem;
    width: 100%;
    border-radius: 0.375rem;
    outline: none;
}

.form-control:focus, input:not([type="checkbox"]):focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

#password {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 20;
    font-size: 1.1rem;
    border: none;
    background: transparent;
    padding: 0;
}

.toggle-password:hover {
    color: #fff;
}

.form-check-input {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary);
    border: none;
    border-radius: 0.375rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #818cf8;
    text-decoration: none;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

#message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.text-danger {
    color: #ef4444 !important;
    margin-top: 10px;
    text-align: center;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
#loginMessage {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    min-height: 40px;
}
