* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2328;
    background: #f6f8fa;
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #24292f;
    margin-bottom: 28px;
    text-align: center;
}

.login-box h1 {
    font-size: 18px;
    font-weight: 500;
    color: #1f2328;
    margin-bottom: 6px;
    text-align: center;
}

.subtitle {
    font-size: 13px;
    color: #656d76;
    text-align: center;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1f2328;
    margin-bottom: 6px;
    margin-top: 14px;
}

label:first-of-type {
    margin-top: 0;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    color: #1f2328;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    background: #ffffff;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

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

.checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    font-weight: 400;
    color: #1f2328;
    margin: 0;
    cursor: pointer;
}

button[type="submit"] {
    width: 100%;
    padding: 8px 16px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #1f883d;
    border: 1px solid rgba(31, 35, 40, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    font-family: inherit;
}

button[type="submit"]:hover {
    background: #1a7f37;
}

button[type="submit"]:active {
    background: #187533;
}

.footer-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.footer-links a {
    color: #0969da;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.info-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #d0d7de;
    font-size: 12px;
    color: #656d76;
    text-align: center;
}

.info-block p {
    margin-bottom: 4px;
}

.error-message {
    padding: 10px 12px;
    margin-bottom: 18px;
    background: #ffebe9;
    border: 1px solid #ff8182;
    border-radius: 6px;
    font-size: 13px;
    color: #82071e;
}

.page-footer {
    font-size: 12px;
    color: #656d76;
    text-align: center;
}

.page-footer a {
    color: #656d76;
    text-decoration: none;
}

.page-footer a:hover {
    color: #0969da;
    text-decoration: underline;
}

.separator {
    margin: 0 6px;
    color: #d0d7de;
}

.error-box {
    text-align: center;
}

.error-box h1 {
    font-size: 48px;
    font-weight: 300;
    color: #656d76;
    margin: 16px 0;
}

.link-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #1f883d;
    border-radius: 6px;
    text-decoration: none;
}

.link-button:hover {
    background: #1a7f37;
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px 20px;
    }
    
    .logo {
        font-size: 20px;
        margin-bottom: 24px;
    }
}
