/*
Theme Name: Yaagoubi Minimal
Theme URI: https://yaagoubi.com/
Author: Yaagoubi
Description: Minimalist fullscreen WordPress theme inspired by the supplied yaagoubi.com login screen.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: yaagoubi-minimal
*/

:root {
    --ym-bg: #f4f6fb;
    --ym-primary: #162d63;
    --ym-secondary: #6680ad;
    --ym-title-size: clamp(4rem, 8.7vw, 7rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

html { background: var(--ym-bg); }

body {
    min-height: 100vh;
    background: var(--ym-bg);
    color: var(--ym-primary);
    font-family: "Montserrat", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.ym-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.ym-content {
    width: min(92vw, 1100px);
    text-align: center;
    transform: translateY(-1.5vh);
}

.ym-brand {
    margin: 0;
    color: var(--ym-primary);
    font-size: var(--ym-title-size);
    line-height: .92;
    font-weight: 300;
    letter-spacing: -0.075em;
    white-space: nowrap;
}

.ym-brand a {
    color: inherit;
    text-decoration: none;
}

.ym-brand-dot {
    letter-spacing: -0.1em;
}

.ym-login {
    display: inline-block;
    margin-top: clamp(2rem, 5vw, 3.7rem);
    color: var(--ym-secondary);
    text-decoration: none;
    font-size: clamp(.7rem, 1.05vw, .92rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    transition: opacity .2s ease, transform .2s ease;
}

.ym-login:hover,
.ym-login:focus-visible {
    opacity: .68;
    transform: translateY(-1px);
}

.ym-login:focus-visible {
    outline: 2px solid var(--ym-secondary);
    outline-offset: 8px;
}

.ym-admin {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ym-admin-card {
    width: min(100%, 520px);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(22,45,99,.08);
    padding: 3rem;
    text-align: center;
}

.ym-admin-card h1 {
    margin: 0 0 1rem;
    font-weight: 400;
}

.ym-admin-card p { color: var(--ym-secondary); }

@media (max-width: 600px) {
    .ym-screen { padding: 1.25rem; }
    .ym-content { transform: translateY(-2vh); }
    .ym-brand {
        white-space: normal;
        font-size: clamp(3rem, 15vw, 5rem);
        letter-spacing: -0.07em;
    }
    .ym-login {
        margin-top: 2.25rem;
        font-size: .66rem;
        letter-spacing: .18em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ym-login { transition: none; }
}
