﻿* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Root */
.auth-root {
    min-height: 100vh;
    background: #f7f8fb;
    position: relative;
    overflow: hidden;
}

/* Background orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .6;
    pointer-events: none;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: #a5b4fc;
    top: -120px;
    left: -120px;
}

.orb-b {
    width: 360px;
    height: 360px;
    background: #93c5fd;
    bottom: -120px;
    right: -120px;
}

/* Frame */
.auth-frame {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Surface */
.auth-surface {
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,.1);
    overflow: hidden;
}

/* Grid */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
}

/* LEFT : FORM */
.auth-form-area {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    padding-bottom: 28px;
}

.auth-logo {
    height: 65px;
    width: auto;
    max-width: 200px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Inputs */
.field {
    position: relative;
    margin-bottom: 22px;
}

    .field input {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        border: none;
        outline: none;
        box-shadow: inset 0 0 0 1px #e5e7eb;
        font-size: 14px;
    }

    .field label {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        color: #9ca3af;
        pointer-events: none;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(18px);
        padding: 0 6px;
        transition: .2s ease;
    }

    .field input:focus + label,
    .field input:not(:placeholder-shown) + label {
        top: 0;
        font-size: 11px;
        color: #2563eb;
    }

/* Row */
.auth-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 13px;
}

.link {
    color: #2563eb;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

/* Button */
.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #57A9D7;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

/* Footer */
.auth-footer {
    margin-top: 22px;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
}

/* RIGHT : CONTEXT */
.auth-context {
    padding: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.context-accent {
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.context-head h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.context-head p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* Service tiles */
.context-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.service-tile {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
}

    .service-tile strong {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .service-tile span {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.5;
    }

/* TABLET */
@media (max-width: 1199px) {
    .auth-surface {
        max-width: 820px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-context {
        display: none;
    }

    .auth-form-area {
        padding: 36px;
    }

    .auth-surface {
        min-height: auto;
        max-width: 420px;
    }
}
/* Modern context enhancements */
.modern-context {
    gap: 28px;
}

/* Badge */
.context-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    margin-bottom: 10px;
}

/* Capabilities list */
.context-capabilities {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual capability row */
.capability {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
}

/* Icon bubble */
.cap-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37,99,235,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 18px;
    flex-shrink: 0;
}

/* Content */
.cap-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cap-content span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Footnote */
.context-footnote {
    font-size: 12px;
    color: #6b7280;
    padding-top: 6px;
}

/* Password field wrapper */
.password-field {
    position: relative;
}

/* Eye toggle button */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
}

/* Prevent overlap with text */
.password-field input {
    padding-right: 42px;
}

/* Hover / focus */
.password-toggle:hover {
    color: #2563eb;
}

.select-label {
    position: absolute;
    top: -6px;
    left: 14px;
    font-size: 11px;
    color: #2563eb;
    background: #fff;
    padding: 0 6px;
}

/* OTP Section */
.otp-section {
    margin-top: 20px;
}

.otp-label {
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

/* OTP boxes */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

    .otp-inputs input {
        width: 44px;
        height: 48px;
        text-align: center;
        font-size: 18px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        outline: none;
    }

        .otp-inputs input:focus {
            border-color: #2563eb;
        }

/* Actions */
.otp-actions {
    display: block;
    text-align: center;
    margin-top: 12px;
}

/* Loader inside button */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Verified */
.otp-verified {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #16a34a;
    font-weight: 500;
}

/* Tick animation */
.checkmark svg {
    width: 36px;
    height: 36px;
    stroke: #16a34a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circle 0.6s ease-out forwards;
}

.checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: check 0.4s 0.6s ease-out forwards;
}

@keyframes circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes check {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============================= */
/* TOM SELECT – MOBIHIL THEME */
/* ============================= */

.ts-wrapper {
    width: 100%;
}

/* Control (input box) */
.ts-control {
    min-height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: inset 0 0 0 1px #e5e7eb !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    align-content: center;
}

    /* Prevent height change after select */
    .ts-control > input,
    .ts-control > .item {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* Selected item */
    .ts-control > .item {
        background: transparent !important;
        color: #111827;
    }

/* Focus state */
.ts-wrapper.focus .ts-control {
    box-shadow: inset 0 0 0 2px #2563eb !important;
}

/* Dropdown */
.ts-dropdown {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 6px;
    font-family: 'Poppins', sans-serif;
}

    /* Options */
    .ts-dropdown .option {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

        /* Hover */
        .ts-dropdown .option:hover {
            background: #f1f5f9;
        }

    /* Active */
    .ts-dropdown .active {
        background: #e0e7ff;
    }

/* Remove clear button spacing */
.ts-control .clear-button {
    margin-right: 0 !important;
}

.ts-control input{
    width: 50%;
}

/* Loader overlay */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader box */
.loader-content {
    background: rgba(255,255,255,0.9);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* Spinner */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}