/* Teachers Signup Modal */

.tmodal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tmodal-overlay.visible {
    display: flex;
}

.tmodal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: tmodalSlideIn 0.25s ease-out;
}

@keyframes tmodalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tmodal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #edf2f7;
}

.tmodal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.tmodal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.tmodal-close:hover {
    color: #4a5568;
}

.tmodal-body {
    padding: 24px;
}

/* Steps */
.tmodal-step {
    display: none;
}

.tmodal-step.active {
    display: block;
}

/* Intro block */
.tstep-intro {
    text-align: center;
    margin-bottom: 24px;
}

.tstep-logo {
    height: 52px;
    margin-bottom: 14px;
}

.tstep-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.tstep-text {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.tstep-text strong {
    color: #4a5568;
    word-break: break-all;
}

/* Form elements */
.tform-group {
    margin-bottom: 16px;
}

.tform-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.tform-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
}

.tform-input:focus {
    border-color: #d4a017;
}

.tform-input.error {
    border-color: #fc8181;
}

.tcode-input {
    text-align: center;
    font-size: 1.5rem;
    font-family: monospace;
    letter-spacing: 4px;
    font-weight: 700;
}

.tform-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 6px;
}

.tform-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.tform-submit:hover {
    opacity: 0.92;
}

.tform-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tform-submit.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Checkbox */
.tcheckbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
    cursor: pointer;
}

.tcheckbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d4a017;
}

/* Resend link */
.tresend-link {
    text-align: center;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 16px;
}

.tlink-button {
    background: none;
    border: none;
    color: #b8860b;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.tlink-button:hover {
    color: #d4a017;
}

.tlink-button:disabled {
    color: #a0aec0;
    cursor: not-allowed;
    text-decoration: none;
}

/* Success */
.tsuccess-content {
    text-align: center;
    padding: 20px 0;
}

.tsuccess-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.tsuccess-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px 0;
}

.tsuccess-text {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Mobile */
@media (max-width: 480px) {
    .tmodal {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .tmodal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}
