@tailwind utilities;

/* stiluri pagina */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors used in PRO Login */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f7;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;

    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;

    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus: #2563eb;

    --toggle-active-bg: #ffffff;
    --toggle-active-border: rgba(15, 23, 42, 0.08);
}

.dark {
    /* Dark Mode variables for PRO Login */
    --bg-primary: #0b1220;
    --bg-secondary: #0f172a;
    --bg-tertiary: #111827;

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;

    --border-primary: #1f2937;
    --border-secondary: #273449;

    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;

    --input-bg: #111827;
    --input-border: #1f2937;
    --input-focus: #3b82f6;

    --toggle-active-bg: #1f2937;
    --toggle-active-border: rgba(148, 163, 184, 0.25);
}

* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.login-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Subtle grid background for a "pro" developer tool look */
    background-image: linear-gradient(var(--border-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-primary) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Radial gradient overlay to fade out the grid around edges / make the center pop */
body.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 80%);
    z-index: 0;
    pointer-events: none;
}

/* Dark mode adjustments for grid fading */
.dark body.login-page::before {
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 70%);
}

.pro-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.dark .pro-card {
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

.auth-provider-btn {
    background-color: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.auth-provider-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.pro-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pro-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 1px var(--input-focus);
    outline: none;
}

.pro-button {
    background: var(--accent-primary);
    color: #ffffff;
    transition: all 0.2s ease;
    border: none;
}

.pro-button:hover {
    background: var(--accent-secondary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.theme-toggle-floating {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

/* Styling the divider cleanly */
.pro-divider::before,
.pro-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-primary);
}

/* Theme Toggle Component */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.theme-toggle button {
    padding: 8px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
}

.theme-toggle button.active {
    background: var(--toggle-active-bg);
    color: var(--text-primary);
    border: 1px solid var(--toggle-active-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Icons (Microsoft) */
.ms-sq-1 {
    fill: #F25022;
}

.ms-sq-2 {
    fill: #7FBA00;
}

.ms-sq-3 {
    fill: #00A4EF;
}

.ms-sq-4 {
    fill: #FFB900;
}

/* Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}
