/*
 * Homepage (/) — YouTube-like light theme, hero gradient in dark mode
 * @date 2026-06-30
 * @author Stephane H.
 */

body {
    margin: 0;
    min-width: 320px;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    flex-direction: column;
}

.first-form {
    border: 1px solid #888;
    border-radius: 30px;
}

.error ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.app-index-google-logo-wrap {
    height: 92px;
}

.app-index-google-logo {
    width: 272px;
    height: 92px;
    object-fit: contain;
}

[data-bs-theme="light"] .app-index-google-logo-dark {
    display: none;
}

[data-bs-theme="dark"] .app-index-google-logo-light {
    display: none;
}

[data-bs-theme="light"] body.app-surface-page .app-index-nav-link {
    color: var(--bs-body-color);
}

[data-bs-theme="light"] body.app-surface-page .app-index-nav-link:hover {
    color: var(--app-brand);
}

[data-bs-theme="dark"] body.app-surface-page .app-index-nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] body.app-surface-page .app-index-nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.app-index-custom-link-add {
    line-height: 1;
    min-width: 1.25rem;
}

.app-index-custom-link-add:hover,
.app-index-custom-link-add:focus {
    text-decoration: none;
}

#index-custom-link-feedback {
    display: block;
}

.app-index-custom-link-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.app-index-custom-link-actions {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 2;
}

.app-index-custom-link-wrap:hover .app-index-custom-link-actions,
.app-index-custom-link-wrap:focus-within .app-index-custom-link-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-index-custom-link-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    line-height: 1;
    font-size: 0.8rem;
    cursor: pointer;
}

.app-index-custom-link-action:hover,
.app-index-custom-link-action:focus {
    color: var(--app-brand);
}

.app-index-custom-link-action--delete:hover,
.app-index-custom-link-action--delete:focus {
    color: var(--bs-danger);
}

[data-bs-theme="dark"] .app-index-custom-link-action {
    background: #2b2b2b;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
