@font-face {
  font-family: 'SolaimanLipi';
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/solaimanlipi-bold-v1.0.woff2') format('woff2'),
    url('../fonts/solaimanlipi-bold-v1.0.ttf') format('truetype');
}

@font-face {
  font-family: 'SolaimanLipi';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/solaimanlipi-normal-v1.0.woff2') format('woff2'),
    url('../fonts/solaimanlipi-normal-v1.0.ttf') format('truetype');
}

@font-face {
  font-family: 'SolaimanLipi';
  font-display: swap;
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/solaimanlipi-thin-v1.0.woff2') format('woff2'),
    url('../fonts/solaimanlipi-thin-v1.0.ttf') format('truetype');
}

@font-face {
  font-family: 'OpenSans-Regular';
  font-display: swap;
  src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald.ttf') format('truetype');
}

:root {
    --hello-primary: #2c6e49;
    --hello-primary-dark: #1f4f34;
    --hello-primary-light: #4c9a70;
    --hello-secondary: #d4a373;
    --hello-accent: #f4a261;
    --hello-success: #2d6a4f;
    --hello-danger: #e63946;
    --hello-warning: #f4a261;
    --hello-info: #1e6091;
    --hello-text: #1a1a2e;
    --hello-text-light: #6c757d;
    --hello-bg: #f8f9fa;
    --hello-white: #ffffff;
    --hello-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --hello-shadow-hover: 0 15px 60px rgba(0, 0, 0, 0.12);
    --hello-border: #e9ecef;
    --hello-radius: 16px;
    --hello-radius-sm: 8px;
    --hello-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1,h2,h3,h4,h5,h6{
  font-family: Oswald,SolaimanLipi;
}

.loginpart {
    background: var(--hello-bg);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
/* ===== Login Page Styles ===== */


body {
    background: #f7f9fb;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: OpenSans-Regular, SolaimanLipi;

}
header{
    background: #03346E;
}
.bg-surface {
    background-color: #f7f9fb;
}

.text-on-surface {
    color: #191c1e;
}

.text-on-surface-variant {
    color: #45464d;
}

.text-outline-variant {
    color: #c6c6cd;
}

.border-outline-variant {
    border-color: #c6c6cd;
}

.bg-primary-custom {
    background-color: #000;
}

/* ===== Login Container ===== */
.login-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* ===== Hero Image ===== */
.hero-img {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.7s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== User Type Selector (Hidden for now) ===== */
.user-type-selector {
    display: none;
}

/* ===== Phone Input ===== */
.form-control-phone {
    border: 2px solid #c6c6cd;
    border-radius: 12px;
    background: #fff;
    transition: border 0.2s;
    padding: 0;
    height: 56px;
    cursor: pointer;
}

.form-control-phone:hover {
    border-color: #000;
}

.form-control-phone:focus-within {
    border-color: #000;
}

.country-code-selector {
    cursor: pointer;
    border-right: 1px solid #c6c6cd;
    background: #f2f4f6;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 12px 0 0 12px;
    user-select: none;
}

.phone-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 16px;
    font-size: 1rem;
    height: 56px;
    color: #191c1e;
    letter-spacing: 0.04em;
    width: 100%;
}

.phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.phone-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* ===== Divider ===== */
.divider-line {
    height: 1px;
    background: #c6c6cd;
    flex: 1;
}

/* ===== Email Login Button ===== */
.btn-outline-secondary-custom {
    height: 56px;
    border: 2px solid #c6c6cd;
    border-radius: 14px;
    background: transparent;
    color: #45464d;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline-secondary-custom:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.03);
    color: #000;
}

/* ===== Google Login Button ===== */
.btn-google-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-google-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.btn-google-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.25);
}

.btn-google-modern:hover::before {
    opacity: 0.06;
}

.btn-google-modern:active {
    transform: translateY(0px);
}

.btn-google-modern .google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.btn-google-modern .google-icon-wrapper img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-google-modern .btn-text {
    flex: 1;
    text-align: center;
    z-index: 1;
    letter-spacing: 0.3px;
}

.btn-google-modern .btn-text span {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-google-modern.loading .btn-text span {
    -webkit-text-fill-color: #666;
}

.btn-google-modern .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e8eaed;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

.btn-google-modern.loading .spinner {
    display: inline-block;
}

.btn-google-modern.loading .google-icon-wrapper {
    display: none;
}

.btn-google-modern.loading .btn-text span {
    -webkit-text-fill-color: #5f6368;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-google-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Facebook Button Styles */
.btn-facebook-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.btn-facebook-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
    background: #166fe5;
}

.btn-facebook-modern:active {
    transform: translateY(0px);
}

.btn-facebook-modern .facebook-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-facebook-modern .facebook-icon-wrapper i {
    font-size: 18px;
}

.btn-facebook-modern .btn-text {
    flex: 1;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-facebook-modern .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-facebook-modern.loading .spinner {
    display: inline-block;
}

.btn-facebook-modern.loading .facebook-icon-wrapper {
    display: none;
}

.btn-facebook-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Divider improvements */
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.or-divider-text {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: #f7f9fb;
    padding: 0 16px;
}


/* ===== Language Toggle ===== */
.lang-toggle {
    display: flex;
    background: var(--hello-danger);
    border-radius: 5px;
    padding: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-toggle .lang-option {
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: none;
}

.lang-toggle .lang-option.active {
    background: #ffffff;
    color: #000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lang-toggle .lang-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* ===== OTP Styles ===== */
.otp-top-bar {
    display: flex;
    align-items: center;
    padding: 12px 0 8px 0;
    width: 100%;
}

.otp-back-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    padding: 8px 4px;
    border-radius: 50%;
    color: #191c1e;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    text-decoration: none;
}

.otp-back-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.otp-back-btn i {
    font-size: 1.6rem;
    line-height: 1;
}

.otp-box-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0 20px 0;
}

.otp-box {
    width: 58px;
    height: 70px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid #c6c6cd;
    border-radius: 14px;
    background: #ffffff;
    color: #191c1e;
    transition: all 0.2s ease;
    outline: none;
    caret-color: #000;
}

.otp-box:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.otp-box.filled {
    border-color: #000;
    background: #f0f0f0;
}

.otp-box.error {
    border-color: #dc3545;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

.otp-phone-display {
    background: #f2f4f6;
    padding: 12px 18px;
    border-radius: 12px;
    color: #191c1e;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    border: 2px dashed #c6c6cd;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.otp-verify-btn {
    height: 56px;
    border-radius: 14px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: 0.2s;
    width: 100%;
    margin-top: 20px;
}

.otp-verify-btn:hover {
    background: #2a2a2a;
}

.otp-verify-btn:active {
    transform: scale(0.98);
}

.otp-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.otp-timer-text {
    font-size: 0.9rem;
    color: #45464d;
}

.otp-timer-text span {
    font-weight: 700;
    color: #191c1e;
}

.otp-resend-btn {
    background: transparent;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.otp-resend-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.otp-resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: none;
}

/* ===== Modal Styles ===== */
.modal-fullscreen-custom .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.modal-fullscreen-custom .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    background: #f7f9fb;
}

.modal-fullscreen-custom .modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.modal-phone-input-group {
    background: #fff;
    border: 2px solid #c6c6cd;
    border-radius: 12px;
    height: 64px;
    overflow: hidden;
}

.modal-phone-input-group:focus-within {
    border-color: #000;
}

.modal-country-code {
    background: #f2f4f6;
    padding: 0 18px;
    border-right: 1px solid #c6c6cd;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.modal-phone-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 16px;
    font-size: 1.1rem;
    height: 64px;
    letter-spacing: 0.06em;
    color: #191c1e;
    width: 100%;
}

.modal-phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.modal-submit-btn {
    height: 56px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
}

.modal-submit-btn:hover {
    background: #2a2a2a;
}

.modal-submit-btn:active {
    transform: scale(0.98);
}

.modal-backdrop.show {
    opacity: 0.7;
}

.invalid-feedback-custom {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #dc3545;
}

/* ===== Alert Modal ===== */
.alert-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.alert-modal .modal-header {
    border-bottom: none;
    padding: 24px 24px 0 24px;
}

.alert-modal .modal-body {
    padding: 16px 24px 24px 24px;
    text-align: center;
}

.alert-modal .modal-footer {
    border-top: none;
    padding: 0 24px 24px 24px;
    justify-content: center;
}

.alert-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.alert-icon-circle.error {
    background: #fee2e2;
    color: #dc2626;
}

.alert-icon-circle.success {
    background: #dcfce7;
    color: #16a34a;
}

.alert-icon-circle.warning {
    background: #fef3c7;
    color: #d97706;
}

.alert-modal .btn-alert {
    padding: 10px 40px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 120px;
}

.btn-alert-primary {
    background: #000;
    color: #fff;
    border: none;
}

.btn-alert-primary:hover {
    background: #2a2a2a;
    color: #fff;
}

.btn-alert-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
}

.btn-alert-secondary:hover {
    background: #e5e7eb;
}

/* ===== Section Visibility ===== */
.login-section {
    display: block;
}

.otp-section {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 0 16px;
    }
    
    .hero-img {
        min-height: 150px;
    }
    
    .otp-box {
        width: 50px;
        height: 62px;
        font-size: 24px;
    }
    
    .otp-box-group {
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .otp-box {
        width: 42px;
        height: 54px;
        font-size: 20px;
    }
    
    .otp-box-group {
        gap: 6px;
    }
}

.social-login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
}
.social-login-divider .line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.social-login-divider .text {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}