.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); 
    padding: 20px;
}

.login-card {
    background: var(--bg-card, #ffffff);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 30px;
    transition: transform 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-icon-lg {
    width: 50px;
    height: 50px;
    background: #d1fae5;
    color: #059669;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark, #1f2937);
    margin: 0 0 8px 0;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark, #374151);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-dark, #1f2937);
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
}

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

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark, #4b5563);
    cursor: pointer;
}

.remember-me input {
    accent-color: #3b82f6;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-submit {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #2563eb;
}

.btn-submit:active {
    transform: scale(0.98);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding-top: 20px;
}

.back-link {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-dark, #1f2937);
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .login-wrapper {
        padding: 10px;
    }
}