.mry-train-search-wrap {
    position: relative;
    max-width: 400px;
}

.mry-train-input {
    width: 100%;
    padding: 8px;
}

.mry-train-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
}

.mry-train-suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
}

.mry-train-suggestion-item:hover {
    background: #f0f0f0;
}

.mry-login-register-wrap {
    max-width: 420px;
    margin: 20px auto;
    padding: 22px 22px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    font-family: inherit;
}

/* Panels */
.mry-lr-panel {
    display: none;
    animation: mryFadeIn 0.25s ease-in-out;
}

.mry-lr-panel.active {
    display: block;
}

/* Form */
.mry-lr-form {
    display: flex;
    flex-direction: column;
}

.mry-lr-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.mry-lr-form input {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    outline: none;
    transition: 0.2s ease;
}

.mry-lr-form input:focus {
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.12);
}

/* Buttons */
#mry-login-btn,
#mry-register-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    background: linear-gradient(135deg, #0073aa, #005f8d);
    color: #fff;
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,115,170,0.2);
}

#mry-login-btn:hover,
#mry-register-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #005f8d, #0073aa);
}

#mry-login-btn:disabled,
#mry-register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.mry-login-msg,
.mry-register-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.mry-login-msg.success,
.mry-register-msg.success {
    background: #e9f9ee;
    color: #0b7a33;
    border: 1px solid #bfeacc;
}

.mry-login-msg.error,
.mry-register-msg.error {
    background: #fff0f0;
    color: #b20000;
    border: 1px solid #f3bebe;
}

/* Switch link */
.mry-switch-link {
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.mry-switch-link a {
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
    margin-left: 4px;
}

.mry-switch-link a:hover {
    text-decoration: underline;
    color: #005f8d;
}

/* Logged in state */
.mry-lr-logged-in {
    max-width: 420px;
    margin: 30px auto;
    padding: 16px;
    background: #f5faff;
    border: 1px solid #dbeeff;
    border-radius: 10px;
    color: #004b6b;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

/* Small animation */
@keyframes mryFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 480px) {
    .mry-login-register-wrap {
        padding: 18px;
    }

    .mry-lr-form input {
        font-size: 14px;
    }

    #mry-login-btn,
    #mry-register-btn {
        font-size: 14px;
        padding: 11px;
    }
}
