/* Center Layout Core Setup */
body, html {
    height: 100%;
    margin: 0;
    background-color: #f4f7f6;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}

body[data-theme="dark"] {
    background-color: #0f1011;
}

/* Force perfect viewport centering */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Iconic Modern Card Component */
.auth-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    padding: 2.5rem !important;
    width: 100%;
    max-width: 480px; /* Perfect form width container */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

body[data-theme="dark"] .auth-form-card {
    background: #18191a;
    border-color: #2a2b2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Form UI Design */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

body[data-theme="dark"] .form-group label {
    color: #a0a5a9;
}

.form-control-lg {
    border-radius: 10px !important;
    font-size: 1rem;
    height: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-control-lg:focus {
    border-color: #007bff;
    box-shadow: none;
    outline: 0;
}

body[data-theme="dark"] .form-control-lg {
    background: #242526;
    border-color: #3a3b3c;
    color: #e4e6eb;
}

/* Buttons */
.btn-lg-custom {
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.85rem;
    background-color: #007bff;
    border: none;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-lg-custom:hover {
    background-color: #0056b3;
}

.btn-lg-custom:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
}

/* Password Strength Bar Layout */
.password-strength-wrapper {
    margin-top: 0.5rem;
}

.strength-bar-container {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

body[data-theme="dark"] .strength-bar-container {
    background-color: #3a3b3c;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
}

/* General Layout Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.text-muted { color: #6c757d; }
.alert { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-light { background: #e2e3e5; color: #383d41; }
