:root {
    --bg: #DEEDD5;
    --card: #BEDAAA;
    --button: #698555;
    --text: #132B1D;
    --inactive: rgba(19, 43, 29, 0.35);
    --input-bg: #F5F5F5;
    --white: #FFFFFF;
    --danger: #A94442;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 680px;
}

.auth-card {
    width: 100%;
    background: var(--card);
    border-radius: 28px;
    padding: 34px 34px 32px;
}

.auth-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.auth-subtitle {
    margin: 0 auto 28px;
    max-width: 560px;
    text-align: center;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text);
}

.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 20px;
}

.switch-link {
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--inactive);
    transition: 0.2s ease;
}

.switch-link.active {
    border-bottom-color: var(--text);
}

.form-group {
    margin-bottom: 18px;
}

.input-field {
    width: 100%;
    height: 56px;
    border: none;
    outline: none;
    border-radius: 16px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0 18px;
    font-size: 18px;
}

.input-field::placeholder {
    color: rgba(19, 43, 29, 0.55);
}

.message {
    min-height: 24px;
    margin: 4px 0 16px;
    text-align: center;
    font-size: 16px;
    color: var(--danger);
}

.primary-btn,
.secondary-btn {
    width: 100%;
    height: 56px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn {
    border: none;
    background: var(--button);
    color: var(--white);
}

.primary-btn:hover {
    opacity: 0.94;
}

.secondary-btn {
    margin-top: 18px;
    background: transparent;
    border: 1.5px solid var(--button);
    color: var(--button);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: rgba(105, 133, 85, 0.06);
}

.code-form {
    max-width: 610px;
    margin: 0 auto;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.code-box {
    width: 52px;
    height: 52px;
    border: none;
    outline: none;
    border-radius: 14px;
    background: var(--input-bg);
    text-align: center;
    font-size: 24px;
    color: var(--text);
}

.hidden-code-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.oauth-divider {
    margin: 16px 0 10px;
    text-align: center;
    font-size: 15px;
    color: rgba(19, 43, 29, 0.55);
}

.github-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: transparent;
    color: #698555;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 0;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.github-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .auth-title {
        font-size: 30px;
    }

    .auth-subtitle {
        font-size: 16px;
    }

    .switch-link {
        font-size: 17px;
    }

    .input-field,
    .primary-btn,
    .secondary-btn {
        height: 52px;
        font-size: 16px;
    }

    .code-box {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}
.app-footer {
    position: fixed;
    bottom: 10px;
    right: 16px;

    font-size: 12px;
    color: #2F5F39;

    opacity: 0.9;
    z-index: 9999;
    pointer-events: none;
}