/* ************ Common Auth Styles ************ */
body {
    background-color: var(--bs-body-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    border: 1px solid var(--bs-border-color);
}

.auth-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
}

.auth-header .brand-icon {
    font-size: 1.75rem;
    color: var(--bs-primary);
}

.auth-header h1 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}

.auth-header p {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.auth-body {
    padding: 1.5rem;
}

.auth-footer {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--bs-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn-theme {
    min-width: 90px;
}

.btn-theme.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* Social Login Styles */
.social-login {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--bs-secondary-color);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--bs-border-color);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--bs-secondary-bg);
}

.social-btn.github {
    color: #696565;
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.twitter-x {
    color: #000000;
}

.social-btn.facebook {
    color: #1877F2;
}

/* Error Page Styles */
.error-card {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.error-message {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
    margin-bottom: 2rem;
}

.btn-home {
    min-width: 140px;
}

/* Specific Error Colors */
.error-card .ri-bug-2-line.error-icon {
    color: var(--bs-danger);
}

.error-card .ri-error-warning-line.error-icon {
    color: var(--bs-secondary-color);
}

/* Lock screen */
.lock-card {
    width: 100%;
    max-width: 400px;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    border: 1px solid var(--bs-border-color);
    padding: 2rem;
    text-align: center;
}
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--bs-border-color);
}
.lock-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.lock-desc {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}
.btn-unlock {
    width: 100%;
}
.footer-links {
    margin-top: 1.25rem;
    font-size: 0.875rem;
}
.footer-links a {
    color: var(--bs-primary);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* ensures smooth toggle button experience, matches bootstrap input group */
.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.toggle-password i {
    font-size: 1.2rem;
    pointer-events: none;
}
/* ensures input group button border aligns perfectly */
.input-group .toggle-password {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* optional: subtle focus state */
.toggle-password:focus {
    box-shadow: none;
    outline: none;
}