/* TC Membership – frontend styles */

.tcm-login-wrap {
    max-width: 400px;
    margin: 0 auto;
}

.tcm-login-form .tcm-field {
    margin-bottom: 16px;
}

.tcm-login-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.tcm-login-form input[type="text"],
.tcm-login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.tcm-login-form input[type="text"]:focus,
.tcm-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.tcm-remember label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tcm-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.tcm-btn:hover {
    background: #005d8c;
}

.tcm-forgot {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.tcm-error {
    background: #fde8e8;
    border: 1px solid #e3a0a0;
    color: #8b1a1a;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.tcm-notice {
    padding: 10px 14px;
    background: #e8f4e8;
    border: 1px solid #9ec89e;
    border-radius: 4px;
    color: #2d5a2d;
}

.tcm-members-only-msg {
    padding: 10px 14px;
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    color: #555;
}

/* My Courses grid */
.tcm-courses {
    display: grid;
    grid-template-columns: repeat(var(--tcm-cols, 3), 1fr);
    gap: 24px;
    margin: 24px 0;
}

.tcm-course-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tcm-course-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.tcm-course-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tcm-course-thumb-placeholder {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.tcm-course-title {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .tcm-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tcm-courses {
        grid-template-columns: 1fr;
    }
}
