/* MSTECH Auth Modal Styles */

.mstech-auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.mstech-auth-modal-overlay.active {
    display: flex;
}

.mstech-auth-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mstech-auth-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mstech-auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.mstech-auth-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mstech-auth-close:hover {
    color: #333;
}

.mstech-auth-content {
    padding: 30px;
}

.mstech-auth-tabs {
    display: flex;
    gap: 0;
    margin: -30px -30px 30px -30px;
    padding: 0;
    background: linear-gradient(to right, #f8f9fa 0%, #f0f2f5 100%);
    border-bottom: 2px solid #e0e3e8;
    border-radius: 8px 8px 0 0;
}

.mstech-auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    text-transform: capitalize;
}

.mstech-auth-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
}

.mstech-auth-tab-btn.active {
    color: #007bff;
    background: white;
    border-bottom-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mstech-auth-form {
    display: none;
}

.mstech-auth-form.active {
    display: block;
}

.mstech-form-group {
    margin-bottom: 18px;
}

.mstech-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mstech-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.mstech-form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.mstech-form-group.error input {
    border-color: #dc3545;
}

.mstech-form-error {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.mstech-form-group.error .mstech-form-error {
    display: block;
}

.mstech-form-success {
    display: none;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-bottom: 20px;
    font-size: 14px;
}

.mstech-form-success.show {
    display: block;
}

.mstech-auth-submit {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mstech-auth-submit:hover {
    background: #0056b3;
}

.mstech-auth-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mstech-auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.mstech-auth-footer a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.mstech-auth-footer a:hover {
    text-decoration: underline;
}

.mstech-password-strength {
    margin-top: 8px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.mstech-password-strength-bar {
    height: 100%;
    width: 0;
    background: #dc3545;
    transition: width 0.3s ease;
}

.mstech-password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.mstech-password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.mstech-password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

@media (max-width: 600px) {
    .mstech-auth-modal {
        width: 95%;
        max-height: 95vh;
    }

    .mstech-auth-content {
        padding: 20px;
    }

    .mstech-auth-title {
        font-size: 18px;
    }
}
