:root {
    --nc-blue: #0082c9;
    --nc-blue-dark: #00679e;
    --nc-white: #ffffff;
    --nc-text: #1f2937;
    --nc-muted: #6b7280;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: linear-gradient(180deg, var(--nc-blue) 0%, var(--nc-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--nc-white);
    border-radius: 12px;
    padding: 32px 28px 26px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.logo svg {
    width: 48px;
    height: 48px;
    fill: var(--nc-blue);
}

.logo span {
    font-size: 30px;
    font-weight: 600;
    color: var(--nc-blue);
}

h1 {
    text-align: center;
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--nc-text);
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--nc-muted);
    margin-bottom: 24px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input {
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.button {
    height: 46px;
    border-radius: 8px;
    border: none;
    background: var(--nc-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button.loading {
    cursor: default;
    opacity: .85;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.maintenance {
    display: none;
    margin-top: 18px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
}

.footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}