/* GitHub Login Modal */
.github-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.github-modal-overlay.active {
    display: flex;
}

.github-modal {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 28px 32px;
    width: 400px;
    max-width: 90vw;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.github-modal h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-modal .subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.github-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
}
.github-modal-close:hover {
    color: #fff;
}

/* Method selection */
.github-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.github-method-btn {
    padding: 12px 16px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #2a2a2a;
    color: #e0e0e0;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.github-method-btn:hover {
    border-color: #4caf50;
    background: #333;
}
.github-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.github-method-btn .method-title {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}
.github-method-btn .method-desc {
    font-size: 12px;
    color: #888;
}

/* PAT form */
.github-pat-form {
    display: none;
}
.github-pat-form.active {
    display: block;
}

.github-pat-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #aaa;
}

.github-pat-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.github-pat-form input:focus {
    border-color: #4caf50;
    outline: none;
}

.github-pat-form .btn-row {
    display: flex;
    gap: 8px;
}

.github-pat-submit {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #4caf50;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.github-pat-submit:hover { background: #45a049; }
.github-pat-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.github-pat-back {
    padding: 10px 16px;
    border: 1px solid #555;
    border-radius: 4px;
    background: transparent;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}
.github-pat-back:hover { color: #fff; }

/* Error display */
.github-error {
    display: none;
    background: #3a1a1a;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 12px;
    color: #e74c3c;
    font-size: 13px;
}
.github-error.active {
    display: block;
}

/* Loading state */
.github-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #888;
}
.github-loading.active {
    display: block;
}
