:root {
    --bs-primary: #3b82f6;
    --theme-color: #234895;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: #1e293b;
    background: #fff;
    font-family: Figtree, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    vertical-align: middle;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

button,
input {
    margin: 0;
    font: inherit;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-dropdown-caret {
    font-size: 16px;
    line-height: 1;
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 150px;
    padding: 6px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}

[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 10px;
    color: #334155;
    border-radius: 7px;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #eff6ff;
}

.dash-head-link {
    color: #334155;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 46px;
    color: #1e293b;
    background: #fff;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 0;
    cursor: pointer;
}

.btn:disabled {
    opacity: .65;
    cursor: wait;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    color: #fff;
}

.btn-google {
    color: #334155;
}

.d-grid {
    display: grid;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: #3b82f6 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.small,
small {
    font-size: .875em;
}

.me-0 {
    margin-right: 0 !important;
}

.me-2 {
    margin-right: .5rem !important;
}

.mt-2 {
    margin-top: .5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4,
.my-4 {
    margin-top: 1.5rem !important;
}

.my-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.alert {
    padding: 11px 13px;
    margin-bottom: 16px;
    border-radius: 9px;
}

.alert-success {
    color: #166534;
    background: #dcfce7;
}

.alert-danger {
    color: #991b1b;
    background: #fee2e2;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
}

.g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar {
        width: 100% !important;
        min-height: 66px;
        height: auto !important;
    }

    .navbar-brand {
        position: relative !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    .navbar-brand img {
        max-width: 170px;
        object-fit: contain;
    }

    .auth-nav-right {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
    }

    .auth-card-container {
        align-items: flex-start !important;
        padding-top: 18px !important;
    }

    .auth-card {
        padding: 24px 18px !important;
    }
}
