﻿/* ClikSell Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --navy: #1A2B49;
    --slate: #6B7280;
    --slate-light: #9CA3AF;
    --gold: #C8A75C;
    --teal: #2BA6A6;
    --teal-light: #3BBFBF;
    --red: #DC2626;
    --border: #E5E7EB;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* Desktop: locked to viewport */
.login-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, rgba(43, 166, 166, 0.35) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(200, 167, 92, 0.25) 0%, transparent 50%), linear-gradient(135deg, #0F1E35 0%, #1A2B49 40%, #1e3a5f 70%, #162840 100%);
}

    .login-container::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -15%;
        width: 700px;
        height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(43, 166, 166, 0.18) 0%, transparent 65%);
        animation: floatOrb1 12s ease-in-out infinite;
        pointer-events: none;
    }

    .login-container::after {
        content: '';
        position: absolute;
        bottom: -25%;
        left: -10%;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(200, 167, 92, 0.15) 0%, transparent 65%);
        animation: floatOrb2 15s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.08);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

/* ─── Wrapper ───────────────────────────────────────── */
.login-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.login-card {
    flex: 1 1 0;
    min-width: 0;
}

.external-login-container {
    flex: 0 0 240px;
    display: flex;
    animation: slideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}

.external-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
}

/* ─── Cards ─────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* NO overflow:hidden — that was clipping the form */

}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper .form-input {
        padding-right: 3rem;
    }

.toggle-password {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--slate-light);
    transition: color 0.2s ease;
}

    .toggle-password:hover {
        color: var(--navy);
    }

    .toggle-password svg {
        width: 18px;
        height: 18px;
    }
    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 20px 20px 0 0;
        background-size: 200% 100%;
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Brand ─────────────────────────────────────────── */
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 0 0 0.25rem;
    line-height: 1;
}

.subtitle {
    color: var(--slate);
    text-align: center;
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

/* ─── Form ──────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.1rem;
}

    .form-group label {
        display: block;
        color: var(--navy);
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

.form-input {
    width: 100%;
    padding: 0.875rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    background: #FAFAFA;
    color: #111827;
}

    .form-input:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(43, 166, 166, 0.12);
        background: white;
    }

    .form-input:hover:not(:focus) {
        border-color: #C4C9D4;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--teal);
    flex-shrink: 0;
}

.checkbox-label {
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* ─── Button ────────────────────────────────────────── */
.btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--navy) 0%, #243D5F 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(26, 43, 73, 0.35);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(26, 43, 73, 0.45);
    }

    .btn:active {
        transform: translateY(0);
    }

/* ─── Links ─────────────────────────────────────────── */
.links {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.link {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .link:hover {
        color: var(--navy);
    }

.link-primary {
    color: var(--teal);
    font-weight: 600;
}

    .link-primary:hover {
        color: var(--teal-light);
    }

.link-sep {
    color: var(--border);
    font-size: 0.85rem;
    user-select: none;
}

/* ─── Errors ────────────────────────────────────────── */
.error-message {
    color: var(--red);
    font-weight: 500;
    padding: 0.875rem 1.1rem;
    background: rgba(220, 38, 38, 0.07);
    border-radius: 10px;
    border-left: 3px solid var(--red);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.validation-error {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
    font-weight: 500;
}

/* ─── External login ────────────────────────────────── */
.external-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: var(--slate-light);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 1rem;
}

.external-card :deep(button),
.external-card button {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: white;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

    .external-card :deep(button):hover,
    .external-card button:hover {
        border-color: var(--teal);
        box-shadow: 0 4px 14px rgba(43, 166, 166, 0.18);
        transform: translateY(-1px);
    }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 460px;
        padding: 1.5rem 1rem;
    }

    .external-login-container {
        flex: 0 0 auto;
    }
}

@media (max-width: 540px) {
    html, body {
        overflow: hidden;
        height: 100%;
    }

    .login-container {
        height: 100vh;
        width: 100vw;
        overflow: hidden;
        align-items: center;
        padding: 0.75rem;
    }

    .login-wrapper {
        padding: 0;
        gap: 0.75rem;
        overflow: hidden;
        max-height: calc(100vh - 1.5rem);
    }

    .card {
        padding: 1.25rem 1.25rem;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 1.6rem;
        margin-bottom: 0.1rem;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .form-input {
        padding: 0.6rem 0.875rem;
        font-size: 0.875rem;
    }

    .checkbox-group {
        margin-bottom: 0.75rem;
    }

    .btn {
        padding: 0.75rem;
    }

    .links {
        margin-top: 0.75rem;
        gap: 0.3rem 0.75rem;
    }

    .link {
        font-size: 0.75rem;
    }

    .external-card {
        padding: 1rem 1.25rem;
    }

    .external-title {
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 380px) {
    .card {
        padding: 1.75rem 1.25rem;
    }

    .brand-title {
        font-size: 1.8rem;
    }
}
