/* Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap; /* For text, swap is actually better for UX */
  src: url('/style/fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

/* Material Symbols Outlined - THE FIX IS HERE */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  src: url('/style/fonts/material-symbols-outlined.woff2') format('woff2');
  font-display: block; /* <--- This prevents the text from showing */
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

:root {
    --login-primary: #135bec;
    --login-glass-bg: rgba(255, 255, 255, 0.03);
    --login-glass-border: rgba(255, 255, 255, 0.1);
    --login-text-main: #ffffff;
    --login-text-dim: rgba(255, 255, 255, 0.4);
}

/* Scoped Wrapper - Prevents bleeding into your main site body */
.login-screen-wrapper {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at center, #101622 0%, #05070a 100%);
    color: var(--login-text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-screen-wrapper * {
    box-sizing: border-box;
}

/* The Login Box */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--login-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--login-glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--login-text-main);
}

.login-header p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--login-text-dim);
}

/* Form Elements */
.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.login-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--login-text-dim);
    font-weight: 700;
    margin-top: 1rem;
}

.login-input-wrapper {
    position: relative;
}

/* Targeted input only within our wrapper */
.login-input-wrapper .login-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.login-input-wrapper .login-field[type="password"] {
    letter-spacing: 0.5em;
}

.login-input-wrapper .login-field:focus {
    outline: none;
    border-bottom-color: var(--login-primary);
    background: rgba(19, 91, 236, 0.08);
}

/* Focus Line Animation */
.login-focus-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--login-primary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.login-field:focus + .login-focus-underline {
    width: 100%;
}

/* Button */
.login-button {
    width: 100%;
    background: var(--login-primary);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(19, 91, 236, 0.4);
}

.login-button:hover {
    background: #1a66ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(19, 91, 236, 0.5);
}

.login-button .material-icons {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.login-button:hover .material-icons {
    transform: translateX(4px);
}

.login-footer-spacer {
    margin-top: 1.5rem;
}
