/* =========================================================
   Auth Pages (Login/Register)
========================================================= */

/* Center the auth content */
.page {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background);
    color: var(--text);
}

/* Form container */
.page form {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Title */
.page h1 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-strong);
}

/* Labels */
.page label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Inputs */
.page input[type="text"],
.page input[type="password"],
.page input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition: border 0.15s, box-shadow 0.15s;
}

.page input::placeholder {
    color: var(--text-muted);
}

.page input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Button */
.page .login-button {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.05s;
}

.page button:hover {
    opacity: 0.9;
}

.page button:active {
    transform: scale(0.98);
}

/* Register link */
.page form a {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
}

.page form a:hover {
    color: var(--accent);
}

/* Optional: subtle card hover (desktop only feel) */
@media (hover: hover) {
    .page form:hover {
        border-color: var(--border);
    }
}


/* =========================================================
   OIDC Section
========================================================= */

.oidc-section {
    margin-top: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

/* Toggle button */
.oidc-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 6px 2px;
    transition: color 0.15s;
}

.oidc-toggle:hover {
    color: var(--text);
}

/* Chevron animation */
.oidc-toggle .chevron {
    transition: transform 0.2s ease;
}

.oidc-section.open .chevron {
    transform: rotate(180deg);
}

/* Hidden by default */
.oidc-list {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

/* Show when open */
.oidc-section.open .oidc-list {
    display: flex;
}

/* Provider buttons */
.oidc-provider {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-strong);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, border 0.15s, color 0.15s;
}

.oidc-provider:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--text-strong);
}


/* =========================================================
   Password Wrapper & Toggles
========================================================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 42px;
}

.password-toggle, 
.password-toggle2 {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.password-toggle:hover, 
.password-toggle2:hover {
    color: var(--text-strong);
}

.eye-icon, 
.eye-icon2 {
    width: 20px;
    height: 20px;
}