@font-face {
    font-family : 'Play';
    src         : url('../fonts/play/Play-Regular.ttf') format('truetype');
    font-weight : 400;
    font-style  : normal;
    font-display: swap;
}

@font-face {
    font-family : 'Play';
    src         : url('../fonts/play/Play-Bold.ttf') format('truetype');
    font-weight : 700;
    font-style  : normal;
    font-display: swap;
}

body {
    font-family          : 'Play', sans-serif;
    background           : var(--basic-bg);
    background-attachment: fixed;
    color                : var(--basic-text);
    min-height           : 100vh;
    transition           : background 0.3s ease, color 0.3s ease;
}

:root {
    --basic-accent      : #4A90E2;
    --basic-muted       : #6c757d;
    --basic-border      : #e3e3e3;
    --basic-card-shadow : 0 10px 30px rgba(0, 0, 0, 0.08);
    --basic-label-width : 110px;
    --basic-radius      : 6px;
    --basic-focus-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    
    /* Light mode colors */
    --basic-bg          : linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --basic-text        : #111;
    --basic-card-bg     : #fff;
    --basic-card-border : rgba(0, 0, 0, 0.06);
    --basic-input-bg    : #fff;
    --basic-input-border: #dee2e6;
    --basic-text-muted  : #6c757d;
    --basic-heading     : #212529;
}

[data-theme="dark"] {
    --basic-bg          : linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --basic-text        : #e0e0e0;
    --basic-card-bg     : #1e1e2e;
    --basic-card-border : rgba(255, 255, 255, 0.1);
    --basic-card-shadow : 0 10px 30px rgba(0, 0, 0, 0.5);
    --basic-input-bg    : #2a2a3e;
    --basic-input-border: #3a3a4e;
    --basic-text-muted  : #a0a0a0;
    --basic-heading     : #f0f0f0;
    --basic-border      : #3a3a4e;
    --basic-muted       : #a0a0a0;
}

.flat {
    border-radius        : 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius   : 0 !important;
    -ms-border-radius    : 0 !important;
    -o-border-radius     : 0 !important;
}

.basic-card {
    border-radius: var(--basic-radius);
    border       : 1px solid var(--basic-card-border);
    box-shadow   : var(--basic-card-shadow);
    background   : var(--basic-card-bg);
    overflow     : hidden;
    transition   : background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.basic-card .card-body {
    padding: 2rem;
}

.form-container {
    width     : 100%;
    max-width : 600px;
    min-height: 300px;
}

@media (max-width: 576px) {
    .form-container {
        margin: 0 1rem;
    }
}

.basic-split-left {
    border-right: 1px solid var(--basic-border);
    position: relative;
}

@media (max-width: 576px) {
    .basic-split-left {
        border-right  : 0;
        border-bottom : 1px solid var(--basic-border);
        padding-bottom: 1rem;
        margin-bottom : 1rem;
    }
}

.basic-input-label {
    width          : var(--basic-label-width);
    min-width      : var(--basic-label-width);
    justify-content: flex-start;
}

.basic-link {
    color      : #495057;
    transition : all 0.2s ease;
    font-weight: 500;
}

.basic-link:hover,
.basic-link:focus {
    color          : var(--basic-accent);
    text-decoration: none;
}

/* Form styling enhancements */
.basic-form .form-group {
    margin-bottom: 1.5rem;
}

.basic-form label {
    font-size     : 13px;
    color         : var(--basic-text);
    margin-bottom : 0.5rem;
    display       : block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight   : 600;
}

.basic-form label i {
    color    : var(--basic-accent);
    font-size: 14px;
}

.basic-form .form-control {
    border          : 1px solid var(--basic-input-border);
    padding         : 0.5rem 0.75rem;
    font-size       : 14px;
    transition      : all 0.3s ease;
    background-color: var(--basic-input-bg);
    color           : var(--basic-text);
}

.basic-form .form-control:hover {
    border-color: var(--basic-input-border);
    opacity: 0.8;
}

.basic-form .form-control:focus {
    border-color    : var(--basic-accent);
    box-shadow      : var(--basic-focus-shadow);
    outline         : none;
    background-color: var(--basic-input-bg);
}

.basic-form .form-control::placeholder {
    color     : #adb5bd;
    font-size : 13px;
    font-style: italic;
    opacity   : 0.7;
}


.basic-icon-lg {
    font-size: 42px;
}

/* Verification code (OTP) inputs */
.basic-otp {
    display        : flex;
    flex-wrap      : nowrap;
    align-items    : center;
    justify-content: flex-start;
}

.basic-otp-input {
    text-align   : center;
    font-weight  : 700;
    width        : 38px;
    max-width    : 38px;
    padding-left : 0;
    padding-right: 0;
    margin-right : 0.5rem;
}

.basic-otp-input:last-child {
    margin-right: 0;
}

/* Success check animation */
.basic-success {
    display        : flex;
    align-items    : center;
    justify-content: flex-start;
}

.basic-check {
    width : 64px;
    height: 64px;
}

.basic-check-circle {
    fill             : none;
    stroke           : var(--basic-accent);
    stroke-width     : 3;
    stroke-dasharray : 160;
    stroke-dashoffset: 160;
    animation        : basic-stroke 600ms ease forwards;
}

.basic-check-mark {
    fill             : none;
    stroke           : var(--basic-accent);
    stroke-width     : 3;
    stroke-linecap   : round;
    stroke-linejoin  : round;
    stroke-dasharray : 48;
    stroke-dashoffset: 48;
    animation        : basic-stroke 450ms 250ms ease forwards;
}

@keyframes basic-stroke {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 576px) {
    .basic-otp {
        justify-content: center;
        flex-wrap      : wrap;
    }

    .basic-otp-input {
        margin: 0.25rem;
    }
}

.page-tabs {}

.page-tabs a.active {
    font-weight  : 700;
    border-bottom: 2px solid var(--basic-accent);
    color        : var(--basic-heading);
}

.page-tabs a {
    position       : relative;
    display        : inline-block;
    text-decoration: none;
    color          : var(--basic-text-muted);
    font-size      : 14px;
    margin-right   : 24px;
    padding-bottom : 0.5rem;
    transition     : all 0.3s ease;
    font-weight    : 500;
}

.page-tabs a:hover,
.page-tabs a:focus {
    color          : var(--basic-heading);
    text-decoration: none;
}

.page-tabs a i {
    margin-right: 0.25rem;
    font-size   : 13px;
}

.fs-14 {
    font-size: 14px;
}

.fs-100 {
    font-size: 100px;
}

.logo-holder {
    min-height     : 280px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    padding        : 2rem;
    position       : relative;
}

.logo-holder img {
    max-width : 100%;
    max-height: 100%;
    width     : auto;
    height    : auto;
    object-fit: contain;
}

.logo-holder>div {
    position       : absolute;
    top            : 50%;
    left           : 50%;
    transform      : translate(-50%, -50%);
    width          : auto;
    height         : auto;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

@media (max-width: 576px) {
    .logo-holder {
        min-height: 200px;
        padding   : 1.5rem;
    }

    .logo-holder img {
        max-width : 80%;
        max-height: 80%;
    }
}

/* Typography enhancements */
.basic-card h6 {
    font-size     : 18px;
    font-weight   : 700;
    color         : var(--basic-heading);
    margin-bottom : 0.5rem;
    letter-spacing: -0.3px;
    transition    : color 0.3s ease;
}

.basic-card .text-muted {
    font-size  : 13px;
    color      : var(--basic-text-muted) !important;
    font-weight: 400;
    transition : color 0.3s ease;
}


/* Custom checkbox styling */
.basic-form .custom-control-label {
    font-size     : 14px;
    color         : var(--basic-text-muted);
    line-height   : 1.5;
    margin-bottom : 0;
    text-transform: none;
    font-weight   : 400;
    letter-spacing: normal;
}

.basic-form .custom-control-label::before {
    top: 0.125rem;
}

.basic-form .custom-control-label::after {
    top: 0.125rem;
}

.basic-form .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--basic-accent);
    border-color    : var(--basic-accent);
}

.basic-form .custom-control-input:focus~.custom-control-label::before {
    box-shadow: var(--basic-focus-shadow);
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--basic-card-bg);
    color: var(--basic-text);
    box-shadow: var(--basic-card-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#theme-toggle:focus {
    outline: none;
    box-shadow: var(--basic-focus-shadow);
}

@media (max-width: 576px) {
    #theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Signup Stepper */
.basic-stepper {
    margin-bottom: 2rem;
}

.basic-stepper .stepper-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.basic-stepper .stepper-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--basic-border);
    z-index: 0;
}

.basic-stepper .stepper-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.basic-stepper .stepper-step:not(:last-child) {
    margin-right: 1rem;
}

.basic-stepper .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--basic-card-bg);
    border: 2px solid var(--basic-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--basic-text-muted);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.basic-stepper .step-circle.active {
    background: var(--basic-accent);
    border-color: var(--basic-accent);
    color: #fff;
}

.basic-stepper .step-circle.completed {
    background: var(--basic-accent);
    border-color: var(--basic-accent);
    color: #fff;
}

.basic-stepper .step-label {
    font-size: 12px;
    color: var(--basic-text-muted);
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.basic-stepper .step-circle.active ~ .step-label,
.basic-stepper .step-circle.completed ~ .step-label {
    color: var(--basic-text);
    font-weight: 600;
}

.basic-stepper .step-content {
    display: none;
}

.basic-stepper .step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.basic-stepper .stepper-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--basic-border);
}

@media (max-width: 576px) {
    .basic-stepper .stepper-step {
        flex: 0 0 auto;
    }
    
    .basic-stepper .step-label {
        font-size: 11px;
    }
    
    .basic-stepper .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Social Login Buttons */
.logo-icon {
    flex: 0 0 auto;
}

.social-login {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--basic-border);
}

.divider-text {
    font-size: 12px;
    color: var(--basic-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.social-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid var(--basic-border);
    background: transparent;
    color: var(--basic-text);
    transition: border-color 0.3s ease;
    position: relative;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.social-btn:hover {
    text-decoration: none;
}

.social-btn:hover::before {
    border-color: currentColor;
    animation: border-pulse 1.5s ease-in-out infinite;
}

.social-btn i {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

@keyframes border-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.social-google {
    color: #DB4437;
}

.social-facebook {
    color: #4267B2;
}

.social-linkedin {
    color: #0077b5;
}

.social-x {
    color: #000000;
}

[data-theme="dark"] .social-btn {
    border-color: var(--basic-input-border);
}

[data-theme="dark"] .social-x {
    color: #ffffff;
}

@media (max-width: 576px) {
    .social-login {
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--basic-border);
    }
}

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

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--basic-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    background: #dc3545;
}

.strength-fill.strength-medium {
    background: #ffc107;
}

.strength-fill.strength-strong {
    background: #28a745;
}

.strength-text {
    font-size: 11px;
    display: block;
    margin-top: 0.25rem;
}

/* Error Message Styling */
.alert {
    border-radius: var(--basic-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 13px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #f8d7da;
}

/* Loading State */
.btn-loader {
    display: inline-flex;
    align-items: center;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Form Validation */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}