/* style.css - минимальные стили без внешних шрифтов и библиотек */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f3f5;
    color: #1c1e21;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.card {
    width: 100%;
    max-width: 360px;
    margin: 24px;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

h1 {
    margin: 0 0 20px;
    font-size: 20px;
}

p {
    margin: 0 0 16px;
    color: #444950;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444950;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #c7cbd1;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #1c1e21;
}

input:focus,
button:focus,
a:focus {
    outline: 3px solid #4c9ffe;
    outline-offset: 1px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-row label {
    margin: 0;
    font-weight: normal;
}

button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 12px;
    border: 1px solid #1a5dc7;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:last-child {
    margin-bottom: 0;
}

button:hover {
    background: #1660c4;
}

button + button {
    background: #ffffff;
    color: #1a73e8;
}

button + button:hover {
    background: #f2f7ff;
}

.error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #d93025;
    border-radius: 4px;
    background: #fdecea;
    color: #611a15;
    font-size: 14px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 24px;
}

nav a {
    color: #1a73e8;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

#push-status {
    margin: 16px 0;
    font-weight: 600;
    color: #444950;
}

.spinner {
    width: 32px;
    height: 32px;
    margin: 8px auto 4px;
    border: 3px solid #dbe2ea;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.test-info {
    display: block;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #d7dbe0;
    font-size: 12px;
    color: #6a7078;
}

.test-info code {
    display: inline-block;
    padding: 2px 6px;
    background: #f2f3f5;
    border: 1px solid #dcdfe4;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
