:root {
    --primary: #ee2b6c;
    --primary-hover: #d61f5c;
    --background-light: #f8f6f6;
    --background-dark: #221016;
    --text-main: #181113;
    --text-muted: #89616f;
    --border-color: #e6dbdf;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --font-display: 'Manrope', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

:root {
    --checkbox-tick-svg: url('data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27rgb(255,255,255)%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e');
}

/* Dark Mode Variables */
.dark {
    --background-light: #221016;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --white: #1f2937;
    --border-color: #4b5563;
    --gray-50: #374151;
}

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

body {
    font-family: var(--font-display);
    background-color: var(--background-light);
    color: var(--text-main);
    line-height: 1.5;
}

/* Layout Utilities */
.flex {
    display: flex;
}

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

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

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

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

.flex-1 {
    flex: 1;
}

.w-full {
    width: 100%;
}

.h-screen {
    height: 100vh;
}

.h-full {
    height: 100%;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.relative {
    position: relative;
}

.hidden {
    display: none;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--background-light);
}

.auth-split {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.auth-image-side {
    width: 100%;
    display: flex;
    min-height: 300px;
}

@media (min-width: 1024px) {
    .auth-image-side {
        width: 50%;
        min-height: 100vh;
        height: auto;
    }
}

.auth-image {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex: 1;
}

.auth-form-side {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--white);
}

@media (min-width: 640px) {
    .auth-form-side {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .auth-form-side {
        width: 50%;
    }
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    gap: 1.5rem;
}

/* Typography */
.auth-title {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    padding-top: 0.75rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

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

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

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

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

.text-base {
    font-size: 1rem;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.form-label {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
}

.form-input-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.form-input {
    width: 100%;
    height: 3.5rem;
    padding: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(238, 43, 108, 0.5);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 0;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-input.has-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    border: none;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--gray-700);
}

.dark .btn-outline {
    color: var(--gray-200);
}

.btn-outline:hover {
    background-color: var(--gray-50);
}

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

.link-primary:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--gray-300);
}

.dark .divider-line {
    background-color: var(--gray-600);
}

.divider-text {
    margin: 0 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Icons */
.icon-logo {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Header (for logout/register page) */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .header {
        padding: 0.75rem 2.5rem;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Main Content (for logout/register page) */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .main-content {
        padding: 4rem 1rem;
    }
}

.register-container {
    width: 100%;
    max-width: 32rem;
}

.form-input {
    width: 100%;
    height: 3.5rem;
    padding: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(238, 43, 108, 0.5);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 0;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-input.has-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    border: none;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--gray-700);
}

.dark .btn-outline {
    color: var(--gray-200);
}

.btn-outline:hover {
    background-color: var(--gray-50);
}

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

.link-primary:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--gray-300);
}

.dark .divider-line {
    background-color: var(--gray-600);
}

.divider-text {
    margin: 0 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Icons */
.icon-logo {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Header (for logout/register page) */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .header {
        padding: 0.75rem 2.5rem;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Main Content (for logout/register page) */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .main-content {
        padding: 4rem 1rem;
    }
}

.register-container {
    width: 100%;
    max-width: 32rem;
}

.register-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-main);
    text-align: center;
}

/* Admin Login Card Layout */
.auth-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background-color: var(--background-light);
}

@media (min-width: 1024px) {
    .auth-card-container {
        padding: 2rem;
    }
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 72rem;
    /* max-w-6xl */
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.dark .auth-card {
    background-color: rgba(24, 24, 27, 0.5);
    /* zinc-900/50 */
}

@media (min-width: 1024px) {
    .auth-card {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-card-image-side {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background-color: var(--gray-100);
}

.dark .auth-card-image-side {
    background-color: var(--gray-800);
}

@media (min-width: 1024px) {
    .auth-card-image-side {
        display: flex;
    }
}

.auth-card-image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.auth-card-content {
    position: relative;
    z-index: 10;
}

.auth-card-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

@media (min-width: 640px) {
    .auth-card-form-side {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .auth-card-form-side {
        padding: 4rem;
    }
}

.auth-card-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.033em;
}

.auth-card-subtitle {
    margin-top: 0.5rem;
    color: var(--gray-600);
}

.dark .auth-card-subtitle {
    color: var(--gray-300);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.admin-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}