.access-restricted {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f8f9fa;
}

.message-container {
    max-width: 680px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.message-container h2 {
    color: #1C5276;
    margin-bottom: 20px;
    font-size: 28px;
}

.message-container h2 i {
    color: #E86F3F;
}

.message-container p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.login-btn,
.register-btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn {
    background: #E86F3F;
    color: #fff;
}

.register-btn {
    background: #1C5276;
    color: #fff;
}

.login-btn:hover,
.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.92;
}

.or-divider {
    margin: 0 10px;
    color: #777;
    font-weight: 500;
}

.forgot-password-link {
    display: inline-block;
    margin-top: 18px;
    background: none;
    border: none;
    padding: 0;
    color: #1C5276;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.forgot-password-link:hover {
    color: #E86F3F;
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }

    .or-divider {
        margin: 10px 0;
    }
}

/* Login / Register / Forgot Password popup */
.rda-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 24, 0.85);
    z-index: 100000;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    overflow-y: auto;
}

.rda-overlay.is-open {
    display: flex;
}

body.rda-modal-open {
    overflow: hidden;
}

.rda-modal {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(28, 82, 118, 0.15);
    margin: auto 0;
    padding: 32px 36px 36px;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.rda-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    background: #f5f8fa;
    border: 1.5px solid #e0e6ed;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #1C5276;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rda-close:hover {
    background: #E86F3F;
    border-color: #E86F3F;
    color: #fff;
}

.rda-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 26px;
    border-bottom: 1.5px solid #eef2f5;
}

.rda-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 4px 14px;
    margin-right: 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #8a97a0;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.rda-tab:hover {
    color: #1C5276;
}

.rda-tab.active {
    color: #E86F3F;
    border-bottom-color: #E86F3F;
}

.rda-panel .rda-field {
    margin-bottom: 18px;
}

.rda-panel label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #EB6E3B;
}

.rda-panel input[type="text"],
.rda-panel input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.rda-panel input:focus {
    border-color: #E86F3F;
    outline: none;
    background: #fff;
}

.rda-password-field {
    position: relative;
}

.rda-password-field input[type="password"],
.rda-password-field input[type="text"] {
    padding-right: 42px;
}

.rda-toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    line-height: 1;
}

.rda-toggle-password:hover {
    color: #E86F3F;
}

.rda-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #444;
    cursor: pointer;
}

.rda-submit-btn {
    display: block;
    width: 100%;
    background: #E86F3F;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rda-submit-btn:hover {
    background: #1C5276;
}

.rda-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rda-error {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    color: #a71d2a;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.rda-success {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    color: #1e7e46;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .rda-modal {
        padding: 26px 20px 30px;
    }

    .rda-tab {
        margin-right: 12px;
        font-size: 14px;
    }
}
