﻿.ymx-retrieve-password-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    background-color: var(--ymx-bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ymx-retrieve-tabs {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.ymx-retrieve-tabs::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 0;
    height: 2px;
    background: #e6e6e6;
}

.ymx-retrieve-tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.ymx-retrieve-tab .tab-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #e6e6e6;
    color: var(--ymx-text-muted);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.ymx-retrieve-tab .tab-label {
    color: var(--ymx-text-muted);
    font-size: 14px;
    transition: all 0.3s;
}

.ymx-retrieve-tab.active .tab-number {
    background: #007bfe;
    color: #fff;
}

.ymx-retrieve-tab.active .tab-label {
    color: #007bfe;
    font-weight: 600;
}

.ymx-retrieve-tab.completed .tab-number {
    background: #52c41a;
    color: #fff;
}

.ymx-retrieve-tab.completed .tab-label {
    color: #52c41a;
}

.ymx-retrieve-content {
    min-height: 300px;
}

.ymx-retrieve-panel {
    display: none;
    text-align: center;
}

.ymx-retrieve-panel.is-active {
    display: block;
}

.ymx-retrieve-title {
    margin-bottom: 20px;
    color: var(--ymx-text-primary);
    font-size: 20px;
    font-weight: 600;
}

.ymx-retrieve-text {
    margin-bottom: 20px;
    color: var(--ymx-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.ymx-retrieve-form {
    max-width: 400px;
    margin: 0 auto;
}

.ymx-retrieve-form-group {
    margin-bottom: 20px;
}

.ymx-retrieve-form input[type="text"],
.ymx-retrieve-form input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ymx-border-color);
    border-radius: 6px;
    background: #fafbfc;
    font-size: 15px;
    transition: all 0.3s;
}

.ymx-retrieve-form input[type="text"]:focus,
.ymx-retrieve-form input[type="password"]:focus {
    border-color: #007bfe;
    outline: none;
    background-color: var(--ymx-bg-card);
}

.ymx-retrieve-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #007bfe 0%, #4a9eff 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 254, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ymx-retrieve-submit-btn:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bfe 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 254, 0.3);
}

.ymx-retrieve-submit-btn:active {
    transform: translateY(1px);
}

.ymx-retrieve-success-message,
.ymx-retrieve-error-message {
    padding: 20px 0;
}

.ymx-retrieve-error {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #fff2f0;
    color: #ff4d4f;
    font-size: 14px;
    text-align: left;
}

.ymx-retrieve-link-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    background: #007bfe;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.ymx-retrieve-link-btn:hover {
    background: #0056b3;
}

.topic-header {
    width: 100%;
    max-width: 820px;
    height: 460px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.topic-header-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.topic-header-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 20px;
}

.topic-header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-count-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topic-count-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    color: #fff;
}

.topic-count-icon .icon,
.topic-count-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    color: #fff;
}

.topic-count {
    color: #fff;
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.topic-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.topic-description {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

.main-layout {
    padding: 20px 0;
}

.topic-articles {
    width: 100%;
    max-width: 820px;
}

.topic-articles .articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
}


@media (max-width: 900px) {
    .topic-header {
        width: 100%;
        max-width: 820px;
        height: auto;
        aspect-ratio: 820 / 460;
    }

    .topic-articles {
        width: 100%;
        max-width: 820px;
    }
}

@media (max-width: 768px) {
    .ymx-retrieve-password-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .ymx-retrieve-tabs {
        margin-bottom: 30px;
    }

    .ymx-retrieve-tab .tab-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ymx-retrieve-tab .tab-label {
        font-size: 12px;
    }

    .ymx-retrieve-title {
        font-size: 18px;
    }

    .ymx-retrieve-form {
        max-width: 100%;
    }

    .main-layout {
        padding: 0;
    }

    .topic-header {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .topic-header-content {
        padding: 15px;
    }

    .topic-title {
        font-size: 20px;
    }

    .topic-description {
        font-size: 13px;
    }

    .topic-articles {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .topic-articles .articles-container {
        margin-left: 0;
    }

    .topic-articles .ymx-article-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 12px;
        gap: 12px;
        border-radius: 8px;
    }

    .topic-articles.ymx-topic-articles--thumb-left .ymx-article-card {
        flex-direction: row;
    }

    .topic-articles:not(.ymx-topic-articles--thumb-left) .ymx-article-card {
        flex-direction: row-reverse;
    }

    .topic-articles .ymx-article-card:first-child {
        border-radius: 8px;
    }

    .topic-articles .article-thumbnail {
        width: 120px;
        height: 82px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .topic-articles .article-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        height: 82px;
    }

    .topic-articles .ymx-article-card.no-thumbnail .article-content {
        height: auto;
        min-height: 82px;
    }

    .topic-articles .article-title {
        display: flex;
        flex: 1;
        align-items: flex-start;
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.3;
    }

    .topic-articles .article-excerpt {
        display: none;
        margin-bottom: 8px;
    }

    .topic-articles .article-excerpt:not(.hide-mobile) {
        display: block;
    }

    .topic-articles .article-excerpt p {
        margin: 0;
        color: var(--ymx-text-secondary);
        font-size: 12px;
        line-height: 1.6;
    }

    .topic-articles .article-meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: auto;
        font-size: 10px;
    }

    .topic-articles .meta-left {
        gap: 6px;
    }

    .topic-articles .meta-right {
        align-self: auto;
    }

    .topic-articles .meta-item.author-info,
    .topic-articles .meta-item.comments-count {
        display: none;
    }

    .topic-articles .meta-item.post-date.hide-mobile,
    .topic-articles .article-excerpt.hide-mobile,
    .topic-articles .meta-item.category-info.hide-mobile {
        display: none !important;
    }

    .topic-articles .author-avatar {
        width: 16px;
        height: 16px;
    }

    .topic-articles .like-btn {
        font-size: 10px;
    }
}

body.ymx-dark-mode .ymx-retrieve-password-container {
    background: #2a2a2a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.ymx-dark-mode .ymx-retrieve-tabs::before {
    background: #3a3a3a;
}

body.ymx-dark-mode .ymx-retrieve-tab .tab-number {
    background: #3a3a3a;
    color: #888888;
}

body.ymx-dark-mode .ymx-retrieve-tab .tab-label {
    color: #888888;
}

body.ymx-dark-mode .ymx-retrieve-tab.active .tab-number {
    background: #4a9eff;
    color: #fff;
}

body.ymx-dark-mode .ymx-retrieve-tab.completed .tab-number {
    background: #52c41a;
    color: #fff;
}

body.ymx-dark-mode .ymx-retrieve-tab.completed .tab-label {
    color: #52c41a;
}

body.ymx-dark-mode .ymx-retrieve-text {
    color: #aaaaaa;
}

body.ymx-dark-mode .ymx-retrieve-form input[type="text"],
body.ymx-dark-mode .ymx-retrieve-form input[type="password"] {
    border-color: #4a4a4a;
    background: #333333;
    color: #eaeaea;
}

body.ymx-dark-mode .ymx-retrieve-form input[type="text"]:focus,
body.ymx-dark-mode .ymx-retrieve-form input[type="password"]:focus {
    border-color: #4a9eff;
    background: #3a3a3a;
}

body.ymx-dark-mode .ymx-retrieve-form input::placeholder {
    color: #666666;
}

body.ymx-dark-mode .ymx-retrieve-submit-btn {
    background: linear-gradient(90deg, #2a6fd6 0%, #4a9eff 100%);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
}

body.ymx-dark-mode .ymx-retrieve-submit-btn:hover {
    background: linear-gradient(90deg, #1a5fc6 0%, #2a6fd6 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.35);
}

body.ymx-dark-mode .ymx-retrieve-error {
    background: #3a1a1a;
    color: #ff7875;
}

body.ymx-dark-mode .ymx-retrieve-link-btn:hover {
    background: #2a6fd6;
}
