/* OKEYRANK V2 - Premium Design System (Refined) */

/* =========================================
   1. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar (Light Theme) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    /* Slate 300 */
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
    /* Slate 400 */
}

:root {
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;

    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-main, sans-serif);
    background-color: var(--okr-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.h-screen {
    height: 100vh;
}

.w-full {
    width: 100%;
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-muted {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--okr-primary);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Inputs & Labels */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    /* Bigger touch area */
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--okr-primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(var(--okr-primary-rgb), 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    color: var(--white);
    background-color: var(--okr-primary);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--text-secondary);
}

.w-100 {
    width: 100%;
}

/* Links */
.link-primary {
    color: var(--okr-primary);
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.link-primary:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Auth Layout (Split Screen) */
.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-sidebar {
    display: none;
    /* Mobile hidden */
    width: 50%;
    /* Premium Logic: Dark Gradient */
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.auth-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

@media (min-width: 768px) {
    .auth-sidebar {
        display: block;
    }

    .auth-content {
        width: 50%;
        padding: 4rem;
    }
}

@media (min-width: 1024px) {
    .auth-content {
        padding: 6rem;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Auth Specifics */
.auth-header-logo {
    height: 48px;
    width: auto;
    margin-bottom: 2rem;
}

.input-password-wrapper {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--okr-primary);
    cursor: pointer;
    border-radius: 4px;
}

.checkbox-wrapper span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}