/* ======================================================
   CLEQUA360 LOGIN PAGE - SINGLE PANEL
   THEME: YELLOW + BLACK
====================================================== */

:root {
    --clequa-yellow: #f4c400;
    --clequa-yellow-soft: #ffd84d;
    --clequa-yellow-deep: #d4a800;
    --clequa-black: #050505;
    --clequa-dark: #0b0b0b;
    --clequa-dark-2: #111111;
    --clequa-dark-3: #181818;
    --clequa-white: #ffffff;
    --clequa-text: #f5f5f5;
    --clequa-muted: #b9b9b9;
    --clequa-muted-2: #8e8e8e;
    --clequa-border: rgba(255, 255, 255, 0.08);
    --clequa-border-yellow: rgba(244, 196, 0, 0.18);
    --success: #10b981;
    --danger: #ef4444;
    --shadow-main: 0 25px 70px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.35);
    --transition: all 0.35s ease;
}

/* ======================================================
   GLOBAL RESET
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(244, 196, 0, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(244, 196, 0, 0.08), transparent 20%),
        linear-gradient(135deg, #030303 0%, #090909 50%, #121212 100%);
    color: var(--clequa-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================================================
   PAGE WRAPPER
====================================================== */

.login-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-form-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-form-card {
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)),
        linear-gradient(135deg, #111111 0%, #0c0c0c 100%);
    border: 1px solid var(--clequa-border-yellow);
    border-radius: 28px;
    padding: 38px 32px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.60),
        0 0 40px rgba(244,196,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.login-form-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.10), transparent 70%);
    pointer-events: none;
}

.login-form-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.65),
        0 0 55px rgba(244,196,0,0.08);
}

/* ======================================================
   BACKGROUND DECOR
====================================================== */

.login-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.8;
}

.bg-circle-one {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.18) 0%, rgba(244, 196, 0, 0.03) 70%, transparent 100%);
    animation: floatOne 8s ease-in-out infinite;
}

.bg-circle-two {
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.14) 0%, rgba(244, 196, 0, 0.02) 72%, transparent 100%);
    animation: floatTwo 10s ease-in-out infinite;
}

.bg-line {
    position: absolute;
    width: 1px;
    height: 260px;
    background: linear-gradient(to bottom, transparent, rgba(244,196,0,0.16), transparent);
    opacity: 0.35;
}

.bg-line-one {
    top: 8%;
    left: 18%;
    transform: rotate(16deg);
}

.bg-line-two {
    bottom: 10%;
    right: 18%;
    transform: rotate(-16deg);
}

@keyframes floatOne {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(18px) translateY(14px); }
}

@keyframes floatTwo {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-14px) translateY(-18px); }
}

/* ======================================================
   TOP CONTENT
====================================================== */

.form-card-top {
    position: relative;
    z-index: 2;
    margin-bottom: 26px;
}

.mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mini-brand-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--clequa-yellow);
    box-shadow: 0 0 0 5px rgba(244, 196, 0, 0.10);
}

.mini-brand-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--clequa-yellow-soft);
    letter-spacing: 0.2px;
}

.login-title {
    font-size: 52px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -1.3px;
    color: var(--clequa-white);
    margin-bottom: 12px;
}

.login-subtitle {
    font-size: 15px;
    line-height: 1.8;
    color: var(--clequa-muted);
    margin: 0;
    max-width: 420px;
}

/* ======================================================
   FORM
====================================================== */

.login-form {
    position: relative;
    z-index: 2;
}

.form-field {
    margin-bottom: 18px;
}

.form-label-modern {
    display: block;
    margin-bottom: 10px;
    color: var(--clequa-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    overflow: hidden;
}

.input-shell:hover {
    border-color: rgba(244, 196, 0, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.input-shell:focus-within {
    border-color: rgba(244, 196, 0, 0.40);
    box-shadow: 0 0 0 4px rgba(244, 196, 0, 0.10);
    background: rgba(255, 255, 255, 0.06);
}

.input-shell-icon {
    width: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clequa-yellow);
    font-size: 18px;
}

.input-modern {
    flex: 1;
    height: 60px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--clequa-white);
    font-size: 15px;
    font-weight: 500;
    padding: 0 14px 0 0;
}

.input-modern::placeholder {
    color: #8f8f8f;
}

.password-shell {
    padding-right: 6px;
}

.password-toggle-btn {
    width: 46px;
    height: 46px;
    border: none;
    outline: none;
    border-radius: 14px;
    background: transparent;
    color: var(--clequa-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 3px;
}

.password-toggle-btn:hover {
    background: rgba(244, 196, 0, 0.08);
    color: var(--clequa-yellow-soft);
}

/* ======================================================
   META ROW
====================================================== */

.form-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 24px;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--clequa-muted);
    cursor: pointer;
    user-select: none;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--clequa-yellow);
}

.forgot-link {
    text-decoration: none;
    color: var(--clequa-yellow-soft);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--clequa-yellow);
    text-decoration: underline;
}

/* ======================================================
   BUTTONS
====================================================== */

.btn-login-main {
    width: 100%;
    min-height: 60px;
    border: none;
    outline: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--clequa-yellow) 0%, var(--clequa-yellow-deep) 100%);
    color: #0e0e0e;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 16px 32px rgba(244, 196, 0, 0.22);
}

.btn-login-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(244, 196, 0, 0.28);
}

.btn-login-main i {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.btn-login-main:hover i {
    transform: translateX(4px);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 26px 0 20px;
    z-index: 2;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.10), transparent);
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: #101010;
    padding: 0 14px;
    color: var(--clequa-muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-google-login {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clequa-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-google-login:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 196, 0, 0.22);
    background: rgba(244, 196, 0, 0.06);
    color: var(--clequa-white);
}

.btn-google-login img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-google-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 42%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-24deg);
    transition: 0.7s ease;
}

.btn-google-login:hover::before {
    left: 140%;
}

/* ======================================================
   FOOTER LINKS
====================================================== */

.login-footer-links {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    text-align: center;
}

.signup-text {
    font-size: 14px;
    color: var(--clequa-muted);
    margin-bottom: 10px;
}

.signup-text a,
.guest-link {
    color: var(--clequa-yellow-soft);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.signup-text a:hover,
.guest-link:hover {
    color: var(--clequa-yellow);
    text-decoration: underline;
}

.guest-link {
    display: inline-block;
    font-size: 14px;
}

/* ======================================================
   LOADER
====================================================== */

.login-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}

.login-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-loader-card {
    width: 320px;
    max-width: 92%;
    background: linear-gradient(145deg, #0f0f0f, #171717);
    border: 1px solid rgba(244, 196, 0, 0.18);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    box-shadow:
        0 25px 65px rgba(0,0,0,0.55),
        0 0 35px rgba(244,196,0,0.08);
    position: relative;
    overflow: hidden;
}

.login-loader-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
    background: radial-gradient(circle, rgba(244,196,0,0.14), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.loader-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.loader-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--clequa-yellow), var(--clequa-yellow-deep));
    color: #111;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(244, 196, 0, 0.18);
}

.loader-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.loader-brand-text strong {
    font-size: 16px;
    color: var(--clequa-white);
}

.loader-brand-text span {
    font-size: 12px;
    color: var(--clequa-yellow-soft);
}

.loader-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    height: 44px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.loader-animation span {
    display: block;
    width: 8px;
    border-radius: 20px;
    background: linear-gradient(to top, var(--clequa-yellow), #ffe37a);
    box-shadow: 0 0 14px rgba(244, 196, 0, 0.25);
    animation: barsBounce 0.95s infinite ease-in-out;
}

.loader-animation span:nth-child(1) {
    height: 16px;
    animation-delay: 0s;
}

.loader-animation span:nth-child(2) {
    height: 26px;
    animation-delay: 0.14s;
}

.loader-animation span:nth-child(3) {
    height: 36px;
    animation-delay: 0.28s;
}

.loader-animation span:nth-child(4) {
    height: 24px;
    animation-delay: 0.42s;
}

.loader-message {
    margin: 0;
    font-size: 14px;
    color: var(--clequa-muted);
    position: relative;
    z-index: 2;
}

@keyframes barsBounce {
    0%, 100% {
        transform: scaleY(0.7);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* ======================================================
   TOAST
====================================================== */

.toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-item {
    min-width: 300px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.35s ease;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #0f1f18;
    color: #d1fae5;
    border-left: 4px solid var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.toast-error {
    background: #241010;
    color: #fee2e2;
    border-left: 4px solid var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.16);
}

.toast-icon {
    font-size: 18px;
    line-height: 1;
}

.toast-message {
    line-height: 1.5;
}

/* ======================================================
   OPTIONAL ALERTS
====================================================== */

.security-alert {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.24);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attempt-warning {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.26);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    color: #fcd34d;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-form-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .login-title {
        font-size: 40px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .form-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast-item {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 14px 12px;
    }

    .login-form-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .mini-brand {
        margin-bottom: 12px;
    }

    .mini-brand-text {
        font-size: 12px;
    }

    .login-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .login-subtitle {
        font-size: 13px;
        line-height: 1.7;
    }

    .form-label-modern {
        font-size: 13px;
    }

    .input-shell {
        min-height: 56px;
        border-radius: 16px;
    }

    .input-shell-icon {
        width: 50px;
        min-width: 50px;
        font-size: 17px;
    }

    .input-modern {
        height: 56px;
        font-size: 14px;
    }

    .password-toggle-btn {
        width: 42px;
        height: 42px;
    }

    .btn-login-main,
    .btn-google-login {
        min-height: 56px;
        border-radius: 16px;
        font-size: 14px;
    }

    .signup-text,
    .guest-link,
    .forgot-link,
    .remember-check {
        font-size: 13px;
    }

    .loader-brand-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .loader-brand-text strong {
        font-size: 15px;
    }

    .loader-message {
        font-size: 13px;
    }
}