/**
 * AMFR Login Modal Styles
 * Version: 1.0.0
 * Platform: AMFR 3.1 LTS
 * Target Platforms: WWW, PWA, Android, iOS, Windows, Linux, macOS, Android Auto, Apple CarPlay
 */

.amfr-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.amfr-login-modal-container {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(14, 12, 8, 0.98), rgba(4, 4, 4, 0.98));
    border: 1px solid rgba(215, 166, 60, 0.58);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(215, 166, 60, 0.28), 0 20px 50px rgba(0, 0, 0, 0.8);
    padding: 28px 24px;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: left;
    box-sizing: border-box;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.amfr-login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.amfr-login-modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1ca72;
    text-shadow: 0 0 10px rgba(215, 166, 60, 0.3);
}

.amfr-login-modal-body {
    margin-bottom: 24px;
}

.amfr-login-modal-message {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cccccc;
}

.amfr-login-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amfr-account-button {
    position: absolute;
    top: 15px;
    right: 154px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7a63c;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20,17,10,.97), rgba(5,5,5,.97));
    color: #f1ca72;
    font-weight: 700;
    cursor: pointer;
}
.amfr-account-icon { font-size: 18px; line-height: 1; }
.amfr-account-button-label { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amfr-login-modal-form { display: grid; gap: 12px; }
.amfr-login-modal-form label { display: grid; gap: 6px; color: #eee; font-size: .9rem; }
.amfr-login-modal-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(215,166,60,.45); border-radius: 7px; background: #090909; color: #fff; box-sizing: border-box; }
.amfr-login-modal-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.amfr-login-modal-links a { color: #f1ca72; text-decoration: underline; }
.amfr-login-close-icon { border: 0; background: transparent; color: #f1ca72; font-size: 26px; cursor: pointer; }
.amfr-login-action-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.amfr-login-modal-container :focus-visible, .amfr-account-button:focus-visible { outline: 2px solid #f1ca72; outline-offset: 3px; }
.amfr-login-modal-container button:disabled { opacity: .6; cursor: wait; }

.amfr-login-action-btn,
.amfr-login-close-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d7a63c;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(180deg, #17130a, #080706);
    color: #f1ca72;
    box-shadow: 0 0 10px rgba(215, 166, 60, 0.2);
    transition: all 0.2s ease;
}

.amfr-login-action-btn:hover,
.amfr-login-close-btn:hover {
    transform: translateY(-2px);
    background: rgba(215, 166, 60, 0.15);
    box-shadow: 0 0 16px rgba(215, 166, 60, 0.45);
}

.amfr-login-close-btn {
    background: linear-gradient(180deg, #121212, #030303);
    color: #cccccc;
    border-color: rgba(215, 166, 60, 0.3);
}

.amfr-login-close-btn:hover {
    color: #fff;
    border-color: #d7a63c;
}

/* Responsywność dla urządzeń mobilnych / PWA */
@media (max-width: 480px) {
    .amfr-account-button { top: 8px; right: 134px; min-height: 38px; padding: 0 9px; }
    .amfr-login-modal-container {
        padding: 20px 16px;
        max-width: 100%;
    }

    .amfr-login-modal-title {
        font-size: 1.2rem;
    }

    .amfr-login-modal-message {
        font-size: 0.9rem;
    }

    .amfr-login-action-btn,
    .amfr-login-close-btn {
        min-height: 40px;
        font-size: 0.9rem;
    }
}