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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.container {
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: #24292f;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #24292f;
}

input[type="password"],
input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-family: monospace;
}

input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.btn-primary {
    background: #2da44e;
    color: #fff;
}

.btn-primary:hover {
    background: #218838;
}

.btn-primary:disabled {
    background: #94d3a2;
    cursor: not-allowed;
}

.btn-danger {
    background: #cf222e;
    color: #fff;
}

.btn-danger:hover {
    background: #a40e26;
}

.status {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.status.success {
    background: #dafbe1;
    color: #116329;
}

.status.error {
    background: #ffebe9;
    color: #82071e;
}

.hint {
    font-size: 0.85rem;
    color: #656d76;
    margin-bottom: 12px;
}

.hint a {
    color: #0969da;
}

#result {
    margin-top: 12px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;
}

.user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #656d76;
}

.user-bar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 8px;
}

.user-bar .user-info {
    display: flex;
    align-items: center;
}

.user-bar button {
    background: none;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #656d76;
}

.user-bar button:hover {
    background: #f6f8fa;
}
