/* ===== SchoolDX Gate ===== */

.sdx-preview {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.sdx-preview:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

.sdx-lock {
    margin-top: 20px;
}

/* Popup basic */
.sdx-lock > div {
    max-width: 420px;
    margin: 0 auto;
}
/* ==================================================
   SCHOOLDX POPUP LOGIN / REGISTER
================================================== */

/* Overlay */
.sdx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup box */
.sdx-popup {
    background: #fff;
    width: 420px;
    max-width: 92%;
    border-radius: 12px;
    padding: 26px 24px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: sdxFadeIn .25s ease;
}

/* Header */
.sdx-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sdx-desc {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

/* Tabs – Row 1 */
.sdx-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.sdx-tab {
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.sdx-tab::before {
    margin-right: 6px;
}

.sdx-tab[data-tab="login"]::before {
    content: "🔐";
}

.sdx-tab[data-tab="register"]::before {
    content: "📝";
}

.sdx-tab.active {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    border-color: transparent;
}

/* Form – Row 2 */
.sdx-tab-content {
    display: none;
}

.sdx-tab-content.active {
    display: block;
}

.sdx-popup input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.sdx-popup input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Buttons */
.sdx-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.sdx-login-btn {
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
}

.sdx-register-btn {
    background: linear-gradient(135deg,#16a34a,#15803d);
    color: #fff;
}

.sdx-btn:hover {
    opacity: .92;
}

/* Message */
.sdx-msg {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #dc2626;
}

/* Animation */
@keyframes sdxFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* Popup phải làm mốc định vị */
.sdx-popup {
    position: relative;
}

/* Nút đóng ❌ góc phải form */
.sdx-close {
    position: absolute;
    top: 5px;
    right: 3px;

    width: 32px;
    height: 32px;
    line-height: 30px;

    background: #f3f4f6;
    border: none;
    border-radius: 50%;

    font-size: 22px;
    font-weight: 600;
    color: #374151;

    cursor: pointer;
    transition: all .2s ease;
}

/* Hover đẹp hơn */
.sdx-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: scale(1.1);
}
.sdx-view-more-wrap {
    text-align: center;
    margin: 20px 0;
}

.sdx-view-more {
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.sdx-view-more:hover {
    opacity: .9;
}

