﻿:root {
    --auth-primary: #f2ab11;
    --auth-secondary: #3bc9f5;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
    height: 100vh;
}

/* MAIN */
.auth-container {
    display: flex;
    height: 100vh;
}

/* LEFT PANEL */
.left-panel {
    flex: 1;
    padding: 100px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient( 135deg, rgba(242,171,17,0.12), rgba(59,201,245,0.12) );
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-box {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    margin-right: 10px;
    font-weight: bold;
}

.brand h2 {
    font-weight: 600;
}

/* CONTENT */
.content h1 {
    font-size: 34px;
    margin-bottom: 10px;
    margin-left: 35px;
}

.content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .feature i {
        color: var(--auth-secondary);
        background: white;
        padding: 8px;
        border-radius: 8px;
    }
/*-------------------------------------------------------------------------------------------------------------*/
/* RIGHT PANEL */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0; /* REMOVE desktop offset */
    padding: 20px;
}

/* LOGIN CARD */
.login-card {
    width: 100%;
    max-width: 500px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    .login-card h2 {
        margin-bottom: 5px;
    }

.login-header .sub-text {
    color: var(--text-muted);
}

    .login-header .sub-text span {
        color: var(--auth-secondary);
    }
/* INPUT */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    transition: 0.3s;
}

    .input-box i {
        margin-right: 8px;
        color: var(--text-muted);
    }

    .input-box input {
        border: none;
        outline: none;
        width: 100%;
    }

    .input-box:focus-within {
        border-color: var(--auth-secondary);
        box-shadow: 0 0 0 2px rgba(59,201,245,0.2);
    }

.password-toggle {
    background: transparent;
    border: none;
    text-align: center;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient( 135deg, var(--auth-primary), #ff8c00 );
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

    .login-btn:hover {
        opacity: 0.9;
    }

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .auth-container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
    }

    .login-card {
        width: 90%;
    }
}

/*----------------------------------------*/

/* INITIAL STATE (hidden before animation) */
.left-panel,
.right-panel {
    opacity: 0;
}

/* ANIMATION TRIGGERS */
.left-panel {
    animation: slideInLeft 0.9s ease forwards;
}

.right-panel {
    animation: slideInRight 0.9s ease forwards;
    animation-delay: 0.2s; /* slight delay for premium feel */
}

/* KEYFRAMES */
@keyframes slideInLeft {
    from {
        transform: translateX(-80px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(80px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-card {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feature {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

    .feature:nth-child(1) {
        animation-delay: 0.3s;
    }

    .feature:nth-child(2) {
        animation-delay: 0.4s;
    }

    .feature:nth-child(3) {
        animation-delay: 0.5s;
    }

    .feature:nth-child(4) {
        animation-delay: 0.6s;
    }

/*--------------------------------*/

/* LOGIN HEADER UPGRADE */
.login-header {
    text-align: center;
    margin-bottom: 5px;
}

/* ICON */
.login-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--auth-secondary);
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-logo {
    display: none;
    height: 28px;
}

/* TITLE */
.login-header h2 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* SUBTEXT */
.login-header .sub-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

    .login-header .sub-text span {
        display: inline-block;
        margin-top: 5px;
        font-size: 12px;
        color: var(--auth-secondary);
        font-weight: 500;
    }


/*-------------------------------------------*/

/* TRUST INFO */
.trust-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

    .trust-info div {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .trust-info i {
        color: var(--auth-secondary);
    }

/* EXTRA OPTIONS */
.extra-options {
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 12px;
    margin-bottom: 15px;
}

    .extra-options a {
        color: var(--auth-secondary);
        text-decoration: none;
    }

        .extra-options a:hover {
            text-decoration: underline;
        }

/* LOGIN FOOTER INFO */
.login-footer-info {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 15px;
}

/*-----------------------------------------*/

/* BIG LOGO */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* MAIN LOGO */
.brand-logo-main {
    height: 50px; /* control size here */
    width: auto;
    object-fit: contain;
}

/* INFO GRID */
.info-grid {
    display: flex;
    align-items: stretch;
    margin-top: 25px;
}

/* COLUMN */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 35%;
}

/* ITEM */
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    /* ICON */
    .info-item i {
        color: var(--auth-secondary);
        background: white;
        padding: 8px;
        border-radius: 8px;
    }

/* DIVIDER */
.divider-line {
    width: 1px;
    background: rgba(0,0,0,0.1);
    margin: 0 15px;
}

.auth-footer {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #6b7280;
}

    .auth-footer .link {
        text-decoration: none;
        color: var(--auth-secondary);
    }

        .auth-footer .link:hover {
            text-decoration: underline;
        }


/* Large tablets / small laptops */
@media (max-width: 1200px) {

    .left-panel {
        padding: 60px;
    }

    .content h1 {
        font-size: 28px;
    }

    .info-column {
        width: 45%;
    }
}

@media (max-width: 1024px) {

    /* Hide left completely */
    .left-panel {
        display: none;
    }

    /* Full width layout */
    .auth-container {
        flex-direction: column;
    }

    .right-panel {
        width: 100%;
        height: 100vh;
        padding: 20px;
        margin-right: 0;
    }

    /* Card becomes full-width */
    .login-card {
        width: 100%;
        max-width: 420px;
        border-radius: 12px;
        box-shadow: none; /* cleaner mobile look */
        margin: auto;
    }

    .login-logo {
        display: block;
        margin: auto;
        height: 150px;
        object-fit: contain;
        margin-bottom: -40px;
        margin-top: -30px
    }

    .login-icon {
        display: none; /* completely remove box */
    }
}

/* Small tablets */
@media (max-width: 768px) {

    .login-card {
        max-width: 380px;
        padding: 22px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .input-box {
        padding: 12px;
    }

    .login-btn {
        padding: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {

    .login-card {
        max-width: 100%;
        padding: 20px 15px;
    }

    .login-header h2 {
        font-size: 18px;
    }

    .sub-text {
        font-size: 12px;
    }

    .form-group label {
        font-size: 12px;
    }

    .input-box {
        padding: 10px;
    }
}

/* Small devices */
@media (max-width: 360px) {

    .login-card {
        padding: 15px 10px;
    }

    .login-header h2 {
        font-size: 16px;
    }

    .login-btn {
        font-size: 14px;
    }
}

.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;
}

/* 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);
    }
}