/* -------- LOGIN PAGE -------- */
.login-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
    padding: 24px;
    z-index: 9999;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 44px;
    width: 100%;
    max-width: 420px;
}

/* ---- Branding ---- */
.login-brand-section {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    font-size: 40px;
    color: #b36a9f;
    display: block;
    margin-bottom: 8px;
}

.login-brand {
    font-family: "Nunito", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3f3f3f;
    margin: 0 0 4px 0;
}

.login-tagline {
    font-size: 13px;
    color: #9e9e9e;
    margin: 0;
}

/* ---- Form ---- */
.login-title {
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #3f3f3f;
    margin: 0 0 24px 0;
    text-align: center;
}

.login-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.login-field-row .login-field {
    flex: 1;
    margin-bottom: 0;
}

.login-label {
    font-size: 13px;
    font-weight: 600;
    color: #555555;
}

.login-input {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #3f3f3f;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.login-input:focus {
    border-color: #b36a9f;
    box-shadow: 0 0 0 3px rgba(179, 106, 159, 0.12);
    background: #ffffff;
}

/* ---- Date du mariage (3 champs) ---- */
.login-date-row {
    display: flex;
    gap: 8px;
}

.login-date-part {
    width: 64px !important;
    text-align: center;
    flex-shrink: 0;
}

.login-date-year {
    flex: 1;
    text-align: center;
}

/* ---- Popup erreur ---- */
.login-popup {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 1.5px solid #f5c2c2;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.15);
    min-width: 320px;
    max-width: 480px;
    animation: popup-slide-in 0.25s ease;
}

@keyframes popup-slide-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.login-popup-icon {
    color: #c0392b;
    font-size: 22px;
    flex-shrink: 0;
}

.login-popup-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #7b1a1a;
    line-height: 1.4;
}

.login-popup-close {
    color: #c0392b;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.login-popup-close:hover {
    opacity: 1;
}

/* ---- Bouton principal ---- */
.login-btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #b36a9f, #9b5b88);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.login-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-btn-primary:active {
    transform: translateY(0);
}

/* ---- Séparateur ---- */
.login-divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.login-divider-text {
    font-size: 12px;
    color: #aaaaaa;
    font-weight: 500;
    white-space: nowrap;
}

/* ---- Bouton Google ---- */
.login-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #3f3f3f;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
    box-sizing: border-box;
}

.login-btn-google:hover {
    background: #f8f8f8;
    border-color: #bdbdbd;
    color: #3f3f3f;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---- Switch login/inscription ---- */
.login-switch {
    text-align: center;
    font-size: 13px;
    color: #9e9e9e;
    margin: 20px 0 0 0;
}

.login-toggle-link {
    color: #b36a9f;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-toggle-link:hover {
    color: #9b5b88;
}
