:root {
    --bg-color: #0d0d0d; /* Very dark, almost black */
    --text-color: #ffffff;
    --input-bg: #ffffff;
    --input-text: #333333;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --border-color: #333333;
    --subtext-color: #888888;
}

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

body {
    font-family: 'HarmonyOS Sans SC', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* align-items: center; Removed to allow left alignment of h1 via stretch */
}

h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: left;
}

.google-btn {
    width: 320px;
    height: 48px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    color: var(--text-color);
    padding: 0 12px; /* Adjusted padding since height is fixed */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: background-color 0.2s;
}

.google-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.google-icon {
    margin-right: 10px;
}

/* Overriding SVG colors to match the white 'G' in the screenshot */
.google-icon path {
    fill: white;
}


.divider {
    width: 320px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    color: var(--subtext-color);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
    font-size: 14px;
}

.input-group {
    width: 320px;
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left; /* Ensure label is left aligned */
}

.input-group input {
    width: 320px;
    height: 48px;
    padding: 0 12px; /* Adjusted padding */
    border: none;
    border-radius: 0px;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 14px;
}

.input-group input::placeholder {
    color: #999;
}

.continue-btn {
    width: 320px;
    height: 48px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 0px;
    padding: 0 14px; /* Adjusted padding */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.continue-btn:hover {
    background-color: #FF1E7B;
    color: #FFFFFF;

}

/* spinner 本体：圆形转圈 */
.continue-btn .spinner{
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;              /* ✅ 关键：变成圆 */
  animation: spin 0.8s linear infinite;
  margin-left: 0;                 /* 只有圈，不需要左边距 */
  vertical-align: middle;
}

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

/* loading 状态：只显示圈，隐藏文字 */
.continue-btn.loading .spinner{
  display: inline-block;
}
.continue-btn.loading .btn-text{
  display: none;                  /* ✅ 关键：隐藏 Continue */
}

/* loading / disabled 状态：视觉和交互都不可点 */
.continue-btn.loading,
.continue-btn:disabled{
  cursor: not-allowed;
  pointer-events: none;           /* ✅ 真正不响应点击 */
  opacity: 0.8;
}

.error-message {
    color: #ff4d4f; /* Red color for error */
    font-size: 12px;
    margin-top: 4px;
    height: 16px; /* Fixed height to prevent layout shift */
    text-align: left;
}

/* Success Page Styles */
.success-container {
    text-align: center;
    padding: 20px;
}

.success-container h1 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.success-container p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #888;
    line-height: 1.5;
}

#logout-btn {
     width: 320px;
    height: 48px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 0px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

#logout-btn:hover {
    background-color: #FF1E7B;
    color: #FFFFFF
}

.success-image {
    max-width: 320px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 0px;
}
